pcb

package
v0.0.0-...-07afe4c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCommand        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommand          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommand = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterGreeterServer

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

Types

type GreeterClient

type GreeterClient interface {
	Stop(ctx context.Context, in *StopCommand, opts ...grpc.CallOption) (*StopReply, error)
}

GreeterClient is the client API for Greeter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGreeterClient

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterServer

type GreeterServer interface {
	Stop(context.Context, *StopCommand) (*StopReply, error)
}

GreeterServer is the server API for Greeter service.

type StopCommand

type StopCommand struct {
	Instruction          uint32   `protobuf:"varint,1,opt,name=instruction,proto3" json:"instruction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StopCommand) Descriptor

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

func (*StopCommand) GetInstruction

func (m *StopCommand) GetInstruction() uint32

func (*StopCommand) Marshal

func (m *StopCommand) Marshal() (dAtA []byte, err error)

func (*StopCommand) MarshalTo

func (m *StopCommand) MarshalTo(dAtA []byte) (int, error)

func (*StopCommand) MarshalToSizedBuffer

func (m *StopCommand) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StopCommand) ProtoMessage

func (*StopCommand) ProtoMessage()

func (*StopCommand) Reset

func (m *StopCommand) Reset()

func (*StopCommand) Size

func (m *StopCommand) Size() (n int)

func (*StopCommand) String

func (m *StopCommand) String() string

func (*StopCommand) Unmarshal

func (m *StopCommand) Unmarshal(dAtA []byte) error

func (*StopCommand) XXX_DiscardUnknown

func (m *StopCommand) XXX_DiscardUnknown()

func (*StopCommand) XXX_Marshal

func (m *StopCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopCommand) XXX_Merge

func (m *StopCommand) XXX_Merge(src proto.Message)

func (*StopCommand) XXX_Size

func (m *StopCommand) XXX_Size() int

func (*StopCommand) XXX_Unmarshal

func (m *StopCommand) XXX_Unmarshal(b []byte) error

type StopReply

type StopReply struct {
	ReturnStatus         uint32   `protobuf:"varint,1,opt,name=ReturnStatus,proto3" json:"ReturnStatus,omitempty"`
	Content              string   `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StopReply) Descriptor

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

func (*StopReply) GetContent

func (m *StopReply) GetContent() string

func (*StopReply) GetReturnStatus

func (m *StopReply) GetReturnStatus() uint32

func (*StopReply) Marshal

func (m *StopReply) Marshal() (dAtA []byte, err error)

func (*StopReply) MarshalTo

func (m *StopReply) MarshalTo(dAtA []byte) (int, error)

func (*StopReply) MarshalToSizedBuffer

func (m *StopReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StopReply) ProtoMessage

func (*StopReply) ProtoMessage()

func (*StopReply) Reset

func (m *StopReply) Reset()

func (*StopReply) Size

func (m *StopReply) Size() (n int)

func (*StopReply) String

func (m *StopReply) String() string

func (*StopReply) Unmarshal

func (m *StopReply) Unmarshal(dAtA []byte) error

func (*StopReply) XXX_DiscardUnknown

func (m *StopReply) XXX_DiscardUnknown()

func (*StopReply) XXX_Marshal

func (m *StopReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopReply) XXX_Merge

func (m *StopReply) XXX_Merge(src proto.Message)

func (*StopReply) XXX_Size

func (m *StopReply) XXX_Size() int

func (*StopReply) XXX_Unmarshal

func (m *StopReply) XXX_Unmarshal(b []byte) error

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreeterServer) Stop

Jump to

Keyboard shortcuts

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