pb

package module
v0.0.0-...-4860612 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRandomServiceServer

func RegisterRandomServiceServer(s *grpc.Server, srv RandomServiceServer)

Types

type Random

type Random struct {
	RandomString         string   `protobuf:"bytes,1,opt,name=randomString,proto3" json:"randomString,omitempty"`
	RandomInt            int32    `protobuf:"varint,2,opt,name=randomInt,proto3" json:"randomInt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Random) Descriptor

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

func (*Random) GetRandomInt

func (m *Random) GetRandomInt() int32

func (*Random) GetRandomString

func (m *Random) GetRandomString() string

func (*Random) ProtoMessage

func (*Random) ProtoMessage()

func (*Random) Reset

func (m *Random) Reset()

func (*Random) String

func (m *Random) String() string

func (*Random) XXX_DiscardUnknown

func (m *Random) XXX_DiscardUnknown()

func (*Random) XXX_Marshal

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

func (*Random) XXX_Merge

func (dst *Random) XXX_Merge(src proto.Message)

func (*Random) XXX_Size

func (m *Random) XXX_Size() int

func (*Random) XXX_Unmarshal

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

type RandomServiceClient

type RandomServiceClient interface {
	DoSomething(ctx context.Context, in *Random, opts ...grpc.CallOption) (*Random, error)
}

RandomServiceClient is the client API for RandomService service.

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

func NewRandomServiceClient

func NewRandomServiceClient(cc *grpc.ClientConn) RandomServiceClient

type RandomServiceServer

type RandomServiceServer interface {
	DoSomething(context.Context, *Random) (*Random, error)
}

RandomServiceServer is the server API for RandomService service.

Jump to

Keyboard shortcuts

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