hello

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func (Function) EnumDescriptor() ([]byte, []int)

func (Function) String

func (x Function) String() string

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) Descriptor() ([]byte, []int)

func (*Hello) GetName

func (m *Hello) GetName() string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) Reset

func (m *Hello) Reset()

func (*Hello) String

func (m *Hello) String() string

func (*Hello) XXX_DiscardUnknown

func (m *Hello) XXX_DiscardUnknown()

func (*Hello) XXX_Marshal

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

func (*Hello) XXX_Merge

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

func (*Hello) XXX_Size

func (m *Hello) XXX_Size() int

func (*Hello) XXX_Unmarshal

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

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

func (*HelloModule) ID

func (m *HelloModule) ID() int32

ID will return Module_HELLO in int32 form

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

type Module

type Module int32
const (
	Module_HELLO Module = 0
)

func (Module) EnumDescriptor

func (Module) EnumDescriptor() ([]byte, []int)

func (Module) String

func (x Module) String() string

Jump to

Keyboard shortcuts

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