pb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DRPCRegisterExampleService

func DRPCRegisterExampleService(mux drpc.Mux, impl DRPCExampleServiceServer) error

func RegisterExampleServiceServer

func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)

Types

type DRPCExampleServiceClient

type DRPCExampleServiceClient interface {
	DRPCConn() drpc.Conn

	DoSomething(ctx context.Context, in *DoSomethingReq) (*DoSomethingResp, error)
}

func NewDRPCExampleServiceClient

func NewDRPCExampleServiceClient(cc drpc.Conn) DRPCExampleServiceClient

type DRPCExampleServiceDescription

type DRPCExampleServiceDescription struct{}

func (DRPCExampleServiceDescription) Method

func (DRPCExampleServiceDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCExampleServiceDescription) NumMethods

func (DRPCExampleServiceDescription) NumMethods() int

type DRPCExampleServiceServer

type DRPCExampleServiceServer interface {
	DoSomething(context.Context, *DoSomethingReq) (*DoSomethingResp, error)
}

type DRPCExampleServiceUnimplementedServer

type DRPCExampleServiceUnimplementedServer struct{}

func (*DRPCExampleServiceUnimplementedServer) DoSomething

type DRPCExampleService_DoSomethingStream

type DRPCExampleService_DoSomethingStream interface {
	drpc.Stream
	SendAndClose(*DoSomethingResp) error
}

type DoSomethingReq

type DoSomethingReq struct {
	// Msg is the message to echo.
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DoSomethingReq is a do something request.

func (*DoSomethingReq) Descriptor

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

func (*DoSomethingReq) GetMsg

func (m *DoSomethingReq) GetMsg() string

func (*DoSomethingReq) ProtoMessage

func (*DoSomethingReq) ProtoMessage()

func (*DoSomethingReq) Reset

func (m *DoSomethingReq) Reset()

func (*DoSomethingReq) String

func (m *DoSomethingReq) String() string

func (*DoSomethingReq) XXX_DiscardUnknown

func (m *DoSomethingReq) XXX_DiscardUnknown()

func (*DoSomethingReq) XXX_Marshal

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

func (*DoSomethingReq) XXX_Merge

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

func (*DoSomethingReq) XXX_Size

func (m *DoSomethingReq) XXX_Size() int

func (*DoSomethingReq) XXX_Unmarshal

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

type DoSomethingResp

type DoSomethingResp struct {
	// Msg is the echoed message.
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DoSomethingResp is a do something response.

func (*DoSomethingResp) Descriptor

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

func (*DoSomethingResp) GetMsg

func (m *DoSomethingResp) GetMsg() string

func (*DoSomethingResp) ProtoMessage

func (*DoSomethingResp) ProtoMessage()

func (*DoSomethingResp) Reset

func (m *DoSomethingResp) Reset()

func (*DoSomethingResp) String

func (m *DoSomethingResp) String() string

func (*DoSomethingResp) XXX_DiscardUnknown

func (m *DoSomethingResp) XXX_DiscardUnknown()

func (*DoSomethingResp) XXX_Marshal

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

func (*DoSomethingResp) XXX_Merge

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

func (*DoSomethingResp) XXX_Size

func (m *DoSomethingResp) XXX_Size() int

func (*DoSomethingResp) XXX_Unmarshal

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

type ExampleServiceClient

type ExampleServiceClient interface {
	DoSomething(ctx context.Context, in *DoSomethingReq, opts ...grpc.CallOption) (*DoSomethingResp, error)
}

ExampleServiceClient is the client API for ExampleService service.

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

type ExampleServiceServer

type ExampleServiceServer interface {
	DoSomething(context.Context, *DoSomethingReq) (*DoSomethingResp, error)
}

ExampleServiceServer is the server API for ExampleService service.

type UnimplementedExampleServiceServer

type UnimplementedExampleServiceServer struct {
}

UnimplementedExampleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedExampleServiceServer) DoSomething

Jump to

Keyboard shortcuts

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