Skip to content
Snippets Groups Projects

Resolve "Add an option to send gNMI Subscribe requests via SBI"

3 files
+ 16
14
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -5,6 +5,7 @@ import (
"code.fbi.h-da.de/danet/gosdn/controller/interfaces/change"
gpb "github.com/openconfig/gnmi/proto/gnmi"
"github.com/openconfig/ygot/ytypes"
)
@@ -14,7 +15,11 @@ type Transport interface {
Get(ctx context.Context, params ...string) (interface{}, error)
Set(ctx context.Context, payload change.Payload, path string, schema *ytypes.Schema) error
Subscribe(ctx context.Context, params ...string) error
SubscribeInternal(ctx context.Context, handleSubscribeRepsonse any) error
SubscribeInternal(ctx context.Context, subscribeCallbackFunc HandleSubscribeResponse) error
Type() string
ProcessResponse(resp interface{}, root interface{}, models *ytypes.Schema) error
}
type (
HandleSubscribeResponse func(*gpb.SubscribeResponse)
)
Loading