pb

package
v0.0.0-...-ce39374 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExampleServiceName = "ExampleService"

	ExampleServiceEndpoints = []api.Endpoint{}
)
View Source
var File_example_proto protoreflect.FileDescriptor

Functions

func NewExampleServiceEndpoints

func NewExampleServiceEndpoints() []api.Endpoint

func RegisterExampleServiceServer

func RegisterExampleServiceServer(s server.Server, sh ExampleServiceServer, opts ...server.HandlerOption) error

Types

type Error

type Error struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ExampleServiceClient

type ExampleServiceClient interface {
	Hello(ctx context.Context, req *HelloReq, opts ...client.CallOption) (*HelloRsp, error)
}

func NewExampleServiceClient

func NewExampleServiceClient(name string, c client.Client) ExampleServiceClient

type ExampleServiceServer

type ExampleServiceServer interface {
	Hello(ctx context.Context, req *HelloReq, rsp *HelloRsp) error
}

type HelloReq

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

func (*HelloReq) Descriptor deprecated

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

Deprecated: Use HelloReq.ProtoReflect.Descriptor instead.

func (*HelloReq) ProtoMessage

func (*HelloReq) ProtoMessage()

func (*HelloReq) ProtoReflect

func (x *HelloReq) ProtoReflect() protoreflect.Message

func (*HelloReq) Reset

func (x *HelloReq) Reset()

func (*HelloReq) String

func (x *HelloReq) String() string

type HelloRsp

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

func (*HelloRsp) Descriptor deprecated

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

Deprecated: Use HelloRsp.ProtoReflect.Descriptor instead.

func (*HelloRsp) ProtoMessage

func (*HelloRsp) ProtoMessage()

func (*HelloRsp) ProtoReflect

func (x *HelloRsp) ProtoReflect() protoreflect.Message

func (*HelloRsp) Reset

func (x *HelloRsp) Reset()

func (*HelloRsp) String

func (x *HelloRsp) String() string

Jump to

Keyboard shortcuts

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