Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Module_name = map[int32]string{ 0: "HELLO", } Module_value = map[string]int32{ "HELLO": 0, } )
Enum value maps for Module.
View Source
var ( Function_name = map[int32]string{ 0: "GREETING", } Function_value = map[string]int32{ "GREETING": 0, } )
Enum value maps for Function.
View Source
var File_drpc_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function int32
const (
Function_GREETING Function = 0
)
func (Function) Descriptor ¶
func (Function) Descriptor() protoreflect.EnumDescriptor
func (Function) EnumDescriptor
deprecated
func (Function) Number ¶
func (x Function) Number() protoreflect.EnumNumber
func (Function) Type ¶
func (Function) Type() protoreflect.EnumType
type Hello ¶
type Hello struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Hello) Descriptor
deprecated
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) ProtoReflect ¶
func (x *Hello) ProtoReflect() protoreflect.Message
type HelloModule ¶
type HelloModule struct{}
HelloModule is the RPC Handler for the Hello Module
func (HelloModule) HandleCall ¶
func (m HelloModule) HandleCall(_ context.Context, session *drpc.Session, method drpc.Method, body []byte) ([]byte, error)
HandleCall is the handler for calls to the Hello module
func (HelloModule) ID ¶
func (m HelloModule) ID() drpc.ModuleID
ID will return Module_HELLO as a ModuleID type
type HelloResponse ¶
type HelloResponse struct { Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetGreeting ¶
func (x *HelloResponse) GetGreeting() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
type Module ¶
type Module int32
const (
Module_HELLO Module = 0
)
func (Module) Descriptor ¶
func (Module) Descriptor() protoreflect.EnumDescriptor
func (Module) EnumDescriptor
deprecated
func (Module) Number ¶
func (x Module) Number() protoreflect.EnumNumber
func (Module) Type ¶
func (Module) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.