shackbus

package
v0.0.0-...-094b2e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 6 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*Device) GetExclusive

func (m *Device) GetExclusive() bool

func (*Device) GetIndex

func (m *Device) GetIndex() int32

func (*Device) GetName

func (m *Device) GetName() string

func (*Device) GetPorts

func (m *Device) GetPorts() []*Port

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) Reset

func (m *Device) Reset()

func (*Device) String

func (m *Device) String() string

type None

type None struct {
}

func (*None) Descriptor

func (*None) Descriptor() ([]byte, []int)

func (*None) ProtoMessage

func (*None) ProtoMessage()

func (*None) Reset

func (m *None) Reset()

func (*None) String

func (m *None) String() string

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) Descriptor() ([]byte, []int)

func (*Port) GetExclusive

func (m *Port) GetExclusive() bool

func (*Port) GetIndex

func (m *Port) GetIndex() int32

func (*Port) GetName

func (m *Port) GetName() string

func (*Port) GetTerminals

func (m *Port) GetTerminals() []*Terminal

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) Reset

func (m *Port) Reset()

func (*Port) String

func (m *Port) String() string

type PortName

type PortName struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*PortName) Descriptor

func (*PortName) Descriptor() ([]byte, []int)

func (*PortName) GetName

func (m *PortName) GetName() string

func (*PortName) ProtoMessage

func (*PortName) ProtoMessage()

func (*PortName) Reset

func (m *PortName) Reset()

func (*PortName) String

func (m *PortName) String() string

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 SbSwitchHandler interface {
	GetPort(context.Context, *PortName, *Port) error
	SetPort(context.Context, *PortRequest, *None) error
	GetDevice(context.Context, *None, *Device) error
}

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) Descriptor() ([]byte, []int)

func (*Terminal) GetIndex

func (m *Terminal) GetIndex() int32

func (*Terminal) GetName

func (m *Terminal) GetName() string

func (*Terminal) GetState

func (m *Terminal) GetState() bool

func (*Terminal) ProtoMessage

func (*Terminal) ProtoMessage()

func (*Terminal) Reset

func (m *Terminal) Reset()

func (*Terminal) String

func (m *Terminal) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL