Documentation
¶
Overview ¶
Package shackbus is a generated protocol buffer package.
It is generated from these files:
switch.proto
It has these top-level messages:
None Terminal PortName PortRequest Port Device
Package shackbus is a generated protocol buffer package.
It is generated from these files:
switch.proto
It has these top-level messages:
None Terminal PortName PortRequest Port Device
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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" json:"name,omitempty"` Index int32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"` Ports []*Port `protobuf:"bytes,3,rep,name=ports" json:"ports,omitempty"` Exclusive bool `protobuf:"varint,4,opt,name=exclusive" json:"exclusive,omitempty"` }
func (*Device) Descriptor ¶
func (*Device) GetExclusive ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
type None ¶
type None struct { }
func (*None) Descriptor ¶
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
type Port ¶
type Port struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Index int32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"` Terminals []*Terminal `protobuf:"bytes,3,rep,name=terminals" json:"terminals,omitempty"` Exclusive bool `protobuf:"varint,4,opt,name=exclusive" json:"exclusive,omitempty"` }
func (*Port) Descriptor ¶
func (*Port) GetExclusive ¶
func (*Port) GetTerminals ¶
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
type PortName ¶
type PortName struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*PortName) Descriptor ¶
func (*PortName) ProtoMessage ¶
func (*PortName) ProtoMessage()
type PortRequest ¶
type PortRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Terminals []*Terminal `protobuf:"bytes,2,rep,name=terminals" json:"terminals,omitempty"` }
func (*PortRequest) Descriptor ¶
func (*PortRequest) Descriptor() ([]byte, []int)
func (*PortRequest) GetName ¶
func (m *PortRequest) GetName() string
func (*PortRequest) GetTerminals ¶
func (m *PortRequest) GetTerminals() []*Terminal
func (*PortRequest) ProtoMessage ¶
func (*PortRequest) ProtoMessage()
func (*PortRequest) Reset ¶
func (m *PortRequest) Reset()
func (*PortRequest) String ¶
func (m *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" json:"name,omitempty"` Index int32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"` State bool `protobuf:"varint,3,opt,name=state" json:"state,omitempty"` }
func (*Terminal) Descriptor ¶
func (*Terminal) ProtoMessage ¶
func (*Terminal) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.