rpc

package
v0.0.0-...-908d554 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExampleHandler

func RegisterExampleHandler(s server.Server, hdlr ExampleHandler, opts ...server.HandlerOption) error

func RegisterFooHandler

func RegisterFooHandler(s server.Server, hdlr FooHandler, opts ...server.HandlerOption) error

Types

type CallRequest

type CallRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CallRequest) Descriptor

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

func (*CallRequest) GetName

func (m *CallRequest) GetName() string

func (*CallRequest) ProtoMessage

func (*CallRequest) ProtoMessage()

func (*CallRequest) Reset

func (m *CallRequest) Reset()

func (*CallRequest) String

func (m *CallRequest) String() string

func (*CallRequest) XXX_DiscardUnknown

func (m *CallRequest) XXX_DiscardUnknown()

func (*CallRequest) XXX_Marshal

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

func (*CallRequest) XXX_Merge

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

func (*CallRequest) XXX_Size

func (m *CallRequest) XXX_Size() int

func (*CallRequest) XXX_Unmarshal

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

type CallResponse

type CallResponse struct {
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CallResponse) Descriptor

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

func (*CallResponse) GetMessage

func (m *CallResponse) GetMessage() string

func (*CallResponse) ProtoMessage

func (*CallResponse) ProtoMessage()

func (*CallResponse) Reset

func (m *CallResponse) Reset()

func (*CallResponse) String

func (m *CallResponse) String() string

func (*CallResponse) XXX_DiscardUnknown

func (m *CallResponse) XXX_DiscardUnknown()

func (*CallResponse) XXX_Marshal

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

func (*CallResponse) XXX_Merge

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

func (*CallResponse) XXX_Size

func (m *CallResponse) XXX_Size() int

func (*CallResponse) XXX_Unmarshal

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

type EmptyRequest

type EmptyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyRequest) Descriptor

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

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) Reset

func (m *EmptyRequest) Reset()

func (*EmptyRequest) String

func (m *EmptyRequest) String() string

func (*EmptyRequest) XXX_DiscardUnknown

func (m *EmptyRequest) XXX_DiscardUnknown()

func (*EmptyRequest) XXX_Marshal

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

func (*EmptyRequest) XXX_Merge

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

func (*EmptyRequest) XXX_Size

func (m *EmptyRequest) XXX_Size() int

func (*EmptyRequest) XXX_Unmarshal

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

type EmptyResponse

type EmptyResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyResponse) Descriptor

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

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset

func (m *EmptyResponse) Reset()

func (*EmptyResponse) String

func (m *EmptyResponse) String() string

func (*EmptyResponse) XXX_DiscardUnknown

func (m *EmptyResponse) XXX_DiscardUnknown()

func (*EmptyResponse) XXX_Marshal

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

func (*EmptyResponse) XXX_Merge

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

func (*EmptyResponse) XXX_Size

func (m *EmptyResponse) XXX_Size() int

func (*EmptyResponse) XXX_Unmarshal

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

type ExampleHandler

type ExampleHandler interface {
	Call(context.Context, *CallRequest, *CallResponse) error
}

type ExampleService

type ExampleService interface {
	Call(ctx context.Context, in *CallRequest, opts ...client.CallOption) (*CallResponse, error)
}

func NewExampleService

func NewExampleService(name string, c client.Client) ExampleService

type FooHandler

type FooHandler interface {
	Bar(context.Context, *EmptyRequest, *EmptyResponse) error
}

type FooService

type FooService interface {
	Bar(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*EmptyResponse, error)
}

func NewFooService

func NewFooService(name string, c client.Client) FooService

Jump to

Keyboard shortcuts

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