Documentation ¶
Index ¶
- Variables
- type Function
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)
- func (m *Hello) GetName() string
- func (*Hello) ProtoMessage()
- func (m *Hello) Reset()
- func (m *Hello) String() string
- func (m *Hello) XXX_DiscardUnknown()
- func (m *Hello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Hello) XXX_Merge(src proto.Message)
- func (m *Hello) XXX_Size() int
- func (m *Hello) XXX_Unmarshal(b []byte) error
- type HelloModule
- type HelloResponse
- func (*HelloResponse) Descriptor() ([]byte, []int)
- func (m *HelloResponse) GetGreeting() string
- func (*HelloResponse) ProtoMessage()
- func (m *HelloResponse) Reset()
- func (m *HelloResponse) String() string
- func (m *HelloResponse) XXX_DiscardUnknown()
- func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HelloResponse) XXX_Merge(src proto.Message)
- func (m *HelloResponse) XXX_Size() int
- func (m *HelloResponse) XXX_Unmarshal(b []byte) error
- type Module
Constants ¶
This section is empty.
Variables ¶
View Source
var Function_name = map[int32]string{
0: "GREETING",
}
View Source
var Function_value = map[string]int32{
"GREETING": 0,
}
View Source
var Module_name = map[int32]string{
0: "HELLO",
}
View Source
var Module_value = map[string]int32{
"HELLO": 0,
}
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function int32
const (
Function_GREETING Function = 0
)
func (Function) EnumDescriptor ¶
type Hello ¶
type Hello struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Hello is the message to request a greeting from the server
name is the name of the user being greeted
func (*Hello) Descriptor ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) XXX_DiscardUnknown ¶
func (m *Hello) XXX_DiscardUnknown()
func (*Hello) XXX_Marshal ¶
func (*Hello) XXX_Unmarshal ¶
type HelloModule ¶
type HelloModule struct{}
HelloModule is the RPC Handler for the Hello Module
func (*HelloModule) HandleCall ¶
func (m *HelloModule) HandleCall(session *drpc.Session, function int32, body []byte) ([]byte, error)
HandleCall is the handler for calls to the hello module
type HelloResponse ¶
type HelloResponse struct { Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* HeloResponse is the greeting returned from the server.
greeting is greeting message for the user.
func (*HelloResponse) Descriptor ¶
func (*HelloResponse) Descriptor() ([]byte, []int)
func (*HelloResponse) GetGreeting ¶
func (m *HelloResponse) GetGreeting() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) Reset ¶
func (m *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (m *HelloResponse) String() string
func (*HelloResponse) XXX_DiscardUnknown ¶
func (m *HelloResponse) XXX_DiscardUnknown()
func (*HelloResponse) XXX_Marshal ¶
func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloResponse) XXX_Merge ¶
func (dst *HelloResponse) XXX_Merge(src proto.Message)
func (*HelloResponse) XXX_Size ¶
func (m *HelloResponse) XXX_Size() int
func (*HelloResponse) XXX_Unmarshal ¶
func (m *HelloResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.