proto

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFooServer

func RegisterFooServer(s *grpc.Server, srv FooServer)

Types

type FooClient

type FooClient interface {
	TestFoo(ctx context.Context, in *ReqGrpcTestMessage, opts ...grpc.CallOption) (*ResGrpcTestMessage, error)
}

func NewGrpcTestClient

func NewGrpcTestClient(cc grpc.ClientConnInterface) FooClient

type FooClientImpl

type FooClientImpl struct {
	// contains filtered or unexported fields
}

func (*FooClientImpl) TestFoo

type FooServer

type FooServer interface {
	TestFoo(context.Context, *ReqGrpcTestMessage) (*ResGrpcTestMessage, error)
}

type FooServerImpl

type FooServerImpl struct {
}

func (*FooServerImpl) TestFoo

type ReqGrpcTestMessage

type ReqGrpcTestMessage struct {
	// int32 does not implement Marshal
	Foo int32 `protobuf:"varint,1,opt,name=foo,proto3" json:"foo,omitempty"`
}

extends proto.Message

func (*ReqGrpcTestMessage) ProtoMessage

func (*ReqGrpcTestMessage) ProtoMessage()

func (*ReqGrpcTestMessage) Reset

func (m *ReqGrpcTestMessage) Reset()

func (*ReqGrpcTestMessage) String

func (m *ReqGrpcTestMessage) String() string

type ResGrpcTestMessage

type ResGrpcTestMessage struct {
	Bar int32 `protobuf:"varint,1,opt,name=bar,proto3" json:"bar,omitempty"`
}

func (*ResGrpcTestMessage) ProtoMessage

func (*ResGrpcTestMessage) ProtoMessage()

func (*ResGrpcTestMessage) Reset

func (m *ResGrpcTestMessage) Reset()

func (*ResGrpcTestMessage) String

func (m *ResGrpcTestMessage) String() string

Jump to

Keyboard shortcuts

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