Versions in this module Expand all Collapse all v0 v0.6.6 Jul 3, 2020 Changes in this version + var GnmiBaseClientFactory = func() BaseClientInterface + var GnmiClientFactory = func(ctx context.Context, d client.Destination) (GnmiClient, error) + var TargetGenerator func() TargetIf = NewTarget + var Targets = make(map[topodevice.ID]TargetIf) + func NewSubscribeRequest(subscribeOptions *SubscribeOptions) (*gpb.SubscribeRequest, error) + type BaseClientInterface interface + Subscribe func(context.Context, client.Query, ...string) error + type GnmiClient interface + Capabilities func(ctx context.Context, r *gpb.CapabilityRequest) (*gpb.CapabilityResponse, error) + Close func() error + Get func(ctx context.Context, r *gpb.GetRequest) (*gpb.GetResponse, error) + Set func(ctx context.Context, r *gpb.SetRequest) (*gpb.SetResponse, error) + Subscribe func(ctx context.Context, q client.Query) error + type SubscribeOptions struct + HeartbeatInterval uint64 + Mode string + Origin string + Paths [][]string + Prefix string + SampleInterval uint64 + StreamMode string + UpdatesOnly bool + type Target struct + func (target *Target) Capabilities(ctx context.Context, request *gpb.CapabilityRequest) (*gpb.CapabilityResponse, error) + func (target *Target) CapabilitiesWithString(ctx context.Context, request string) (*gpb.CapabilityResponse, error) + func (target *Target) Client() GnmiClient + func (target *Target) Close() error + func (target *Target) ConnectTarget(ctx context.Context, device topodevice.Device) (topodevice.ID, error) + func (target *Target) Context() *context.Context + func (target *Target) Destination() *client.Destination + func (target *Target) Get(ctx context.Context, request *gpb.GetRequest) (*gpb.GetResponse, error) + func (target *Target) GetWithString(ctx context.Context, request string) (*gpb.GetResponse, error) + func (target *Target) Set(ctx context.Context, request *gpb.SetRequest) (*gpb.SetResponse, error) + func (target *Target) SetWithString(ctx context.Context, request string) (*gpb.SetResponse, error) + func (target *Target) Subscribe(ctx context.Context, request *gpb.SubscribeRequest, ...) error + type TargetIf interface + CapabilitiesWithString func(ctx context.Context, request string) (*gpb.CapabilityResponse, error) + Client func() GnmiClient + Close func() error + ConnectTarget func(ctx context.Context, device topodevice.Device) (topodevice.ID, error) + Context func() *context.Context + Destination func() *client.Destination + Get func(ctx context.Context, request *gpb.GetRequest) (*gpb.GetResponse, error) + GetWithString func(ctx context.Context, request string) (*gpb.GetResponse, error) + Set func(ctx context.Context, request *gpb.SetRequest) (*gpb.SetResponse, error) + SetWithString func(ctx context.Context, request string) (*gpb.SetResponse, error) + Subscribe func(ctx context.Context, request *gpb.SubscribeRequest, ...) error + func GetTarget(key topodevice.ID) (TargetIf, error) + func NewTarget() TargetIf