Documentation
¶
Index ¶
- Variables
- func NewSbSwitchEndpoints() []*api.Endpoint
- func RegisterSbSwitchHandler(s server.Server, hdlr SbSwitchHandler, opts ...server.HandlerOption) error
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetExclusive() bool
- func (x *Device) GetIndex() int32
- func (x *Device) GetName() string
- func (x *Device) GetPorts() []*Port
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type None
- type Port
- func (*Port) Descriptor() ([]byte, []int)deprecated
- func (x *Port) GetExclusive() bool
- func (x *Port) GetIndex() int32
- func (x *Port) GetName() string
- func (x *Port) GetTerminals() []*Terminal
- func (*Port) ProtoMessage()
- func (x *Port) ProtoReflect() protoreflect.Message
- func (x *Port) Reset()
- func (x *Port) String() string
- type PortName
- type PortRequest
- func (*PortRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PortRequest) GetName() string
- func (x *PortRequest) GetTerminals() []*Terminal
- func (*PortRequest) ProtoMessage()
- func (x *PortRequest) ProtoReflect() protoreflect.Message
- func (x *PortRequest) Reset()
- func (x *PortRequest) String() string
- type SbSwitchHandler
- type SbSwitchService
- type Terminal
- func (*Terminal) Descriptor() ([]byte, []int)deprecated
- func (x *Terminal) GetIndex() int32
- func (x *Terminal) GetName() string
- func (x *Terminal) GetState() bool
- func (*Terminal) ProtoMessage()
- func (x *Terminal) ProtoReflect() protoreflect.Message
- func (x *Terminal) Reset()
- func (x *Terminal) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_switch_proto protoreflect.FileDescriptor
Functions ¶
func NewSbSwitchEndpoints ¶ added in v0.2.0
func RegisterSbSwitchHandler ¶
func RegisterSbSwitchHandler(s server.Server, hdlr SbSwitchHandler, opts ...server.HandlerOption) error
Types ¶
type Device ¶
type Device struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Ports []*Port `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
Exclusive bool `protobuf:"varint,4,opt,name=exclusive,proto3" json:"exclusive,omitempty"`
// contains filtered or unexported fields
}
func (*Device) Descriptor
deprecated
func (*Device) GetExclusive ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶ added in v0.2.0
func (x *Device) ProtoReflect() protoreflect.Message
type None ¶
type None struct {
Test string `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"`
// contains filtered or unexported fields
}
func (*None) Descriptor
deprecated
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
func (*None) ProtoReflect ¶ added in v0.2.0
func (x *None) ProtoReflect() protoreflect.Message
type Port ¶
type Port struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Terminals []*Terminal `protobuf:"bytes,3,rep,name=terminals,proto3" json:"terminals,omitempty"`
Exclusive bool `protobuf:"varint,4,opt,name=exclusive,proto3" json:"exclusive,omitempty"`
// contains filtered or unexported fields
}
func (*Port) Descriptor
deprecated
func (*Port) GetExclusive ¶
func (*Port) GetTerminals ¶
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶ added in v0.2.0
func (x *Port) ProtoReflect() protoreflect.Message
type PortName ¶
type PortName struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*PortName) Descriptor
deprecated
func (*PortName) ProtoMessage ¶
func (*PortName) ProtoMessage()
func (*PortName) ProtoReflect ¶ added in v0.2.0
func (x *PortName) ProtoReflect() protoreflect.Message
type PortRequest ¶
type PortRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Terminals []*Terminal `protobuf:"bytes,2,rep,name=terminals,proto3" json:"terminals,omitempty"`
// contains filtered or unexported fields
}
func (*PortRequest) Descriptor
deprecated
func (*PortRequest) Descriptor() ([]byte, []int)
Deprecated: Use PortRequest.ProtoReflect.Descriptor instead.
func (*PortRequest) GetName ¶
func (x *PortRequest) GetName() string
func (*PortRequest) GetTerminals ¶
func (x *PortRequest) GetTerminals() []*Terminal
func (*PortRequest) ProtoMessage ¶
func (*PortRequest) ProtoMessage()
func (*PortRequest) ProtoReflect ¶ added in v0.2.0
func (x *PortRequest) ProtoReflect() protoreflect.Message
func (*PortRequest) Reset ¶
func (x *PortRequest) Reset()
func (*PortRequest) String ¶
func (x *PortRequest) String() string
type SbSwitchHandler ¶
type SbSwitchService ¶
type SbSwitchService interface {
GetPort(ctx context.Context, in *PortName, opts ...client.CallOption) (*Port, error)
SetPort(ctx context.Context, in *PortRequest, opts ...client.CallOption) (*None, error)
GetDevice(ctx context.Context, in *None, opts ...client.CallOption) (*Device, error)
}
func NewSbSwitchService ¶
func NewSbSwitchService(name string, c client.Client) SbSwitchService
type Terminal ¶
type Terminal struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
State bool `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
func (*Terminal) Descriptor
deprecated
func (*Terminal) ProtoMessage ¶
func (*Terminal) ProtoMessage()
func (*Terminal) ProtoReflect ¶ added in v0.2.0
func (x *Terminal) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.