proto

package
v0.0.0-...-c1d5a60 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor

Functions

func NewSrvInterfaceEndpoints

func NewSrvInterfaceEndpoints() []*api.Endpoint

func RegisterSrvInterfaceHandler

func RegisterSrvInterfaceHandler(s server.Server, hdlr SrvInterfaceHandler, opts ...server.HandlerOption) error

Types

type Common

type Common struct {
	Contry string `protobuf:"bytes,1,opt,name=contry,proto3" json:"contry,omitempty"`
	City   string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	// contains filtered or unexported fields
}

func (*Common) Descriptor deprecated

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

Deprecated: Use Common.ProtoReflect.Descriptor instead.

func (*Common) GetCity

func (x *Common) GetCity() string

func (*Common) GetContry

func (x *Common) GetContry() string

func (*Common) ProtoMessage

func (*Common) ProtoMessage()

func (*Common) ProtoReflect

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

func (*Common) Reset

func (x *Common) Reset()

func (*Common) String

func (x *Common) String() string

type Request

type Request struct {
	Common *Common `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	Name   string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Size   int64   `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetCommon

func (x *Request) GetCommon() *Common

func (*Request) GetName

func (x *Request) GetName() string

func (*Request) GetSize

func (x *Request) GetSize() int64

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

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

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type SrvInterfaceHandler

type SrvInterfaceHandler interface {
	Ping(context.Context, *Request, *Response) error
	GetInfo(context.Context, *Request, *Response) error
}

type SrvInterfaceService

type SrvInterfaceService interface {
	Ping(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
	GetInfo(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}

func NewSrvInterfaceService

func NewSrvInterfaceService(name string, c client.Client) SrvInterfaceService

Jump to

Keyboard shortcuts

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