Documentation
¶
Index ¶
- func MarshalHelloReply(v *HelloReply) []byte
- func MarshalHelloRequest(v *HelloRequest) []byte
- func MarshalInt16(v int16) []byte
- func MarshalInt32(v int32) []byte
- func MarshalInt64(v int64) []byte
- func MarshalInt8(v int8) []byte
- func MarshalString(s string) []byte
- func MarshalUint16(v uint16) []byte
- func MarshalUint32(v uint32) []byte
- func MarshalUint64(v uint64) []byte
- func MarshalUint8(v uint8) []byte
- func RegisterHelloWorldService(s *drpc.Server, serviceName string, complement HelloWorld)
- func UnmarshalInt16(r io.Reader) int16
- func UnmarshalInt32(r io.Reader) int32
- func UnmarshalInt64(r io.Reader) int64
- func UnmarshalInt8(r io.Reader) int8
- func UnmarshalString(r io.Reader) string
- func UnmarshalUint16(r io.Reader) uint16
- func UnmarshalUint32(r io.Reader) uint32
- func UnmarshalUint64(r io.Reader) uint64
- func UnmarshalUint8(r io.Reader) uint8
- type HelloReply
- type HelloRequest
- type HelloWorld
- type HelloWorldComplement
- type HelloWorldHandler
- type Serializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalHelloReply ¶
func MarshalHelloReply(v *HelloReply) []byte
func MarshalHelloRequest ¶
func MarshalHelloRequest(v *HelloRequest) []byte
func MarshalInt16 ¶
func MarshalInt32 ¶
func MarshalInt64 ¶
func MarshalInt8 ¶
func MarshalString ¶
func MarshalUint16 ¶
func MarshalUint32 ¶
func MarshalUint64 ¶
func MarshalUint8 ¶
func RegisterHelloWorldService ¶
func RegisterHelloWorldService(s *drpc.Server, serviceName string, complement HelloWorld)
func UnmarshalInt16 ¶
func UnmarshalInt32 ¶
func UnmarshalInt64 ¶
func UnmarshalInt8 ¶
func UnmarshalString ¶
func UnmarshalUint16 ¶
func UnmarshalUint32 ¶
func UnmarshalUint64 ¶
func UnmarshalUint8 ¶
Types ¶
type HelloReply ¶
type HelloReply struct {
Reply string
}
func UnmarshalHelloReply ¶
func UnmarshalHelloReply(r io.Reader) *HelloReply
func (*HelloReply) Marshal ¶
func (x *HelloReply) Marshal() ([]byte, error)
func (*HelloReply) Unmarshal ¶
func (x *HelloReply) Unmarshal(data []byte) error
type HelloRequest ¶
type HelloRequest struct {
Name string
}
func UnmarshalHelloRequest ¶
func UnmarshalHelloRequest(r io.Reader) *HelloRequest
func (*HelloRequest) Marshal ¶
func (x *HelloRequest) Marshal() ([]byte, error)
func (*HelloRequest) Unmarshal ¶
func (x *HelloRequest) Unmarshal(data []byte) error
type HelloWorld ¶
type HelloWorld interface {
SayHello(*HelloRequest, *HelloReply) error
}
type HelloWorldComplement ¶
type HelloWorldComplement struct {
HelloWorld HelloWorld
}
func (*HelloWorldComplement) SayHelloHandler ¶
func (c *HelloWorldComplement) SayHelloHandler(req []byte) (data []byte, err error)
type HelloWorldHandler ¶
Click to show internal directories.
Click to hide internal directories.