helloworld

package
v0.0.0-...-80f3703 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 MarshalInt16(v int16) []byte

func MarshalInt32

func MarshalInt32(v int32) []byte

func MarshalInt64

func MarshalInt64(v int64) []byte

func MarshalInt8

func MarshalInt8(v int8) []byte

func MarshalString

func MarshalString(s string) []byte

func MarshalUint16

func MarshalUint16(v uint16) []byte

func MarshalUint32

func MarshalUint32(v uint32) []byte

func MarshalUint64

func MarshalUint64(v uint64) []byte

func MarshalUint8

func MarshalUint8(v uint8) []byte

func RegisterHelloWorldService

func RegisterHelloWorldService(s *drpc.Server, serviceName string, complement HelloWorld)

func UnmarshalInt16

func UnmarshalInt16(r io.Reader) int16

func UnmarshalInt32

func UnmarshalInt32(r io.Reader) int32

func UnmarshalInt64

func UnmarshalInt64(r io.Reader) int64

func UnmarshalInt8

func UnmarshalInt8(r io.Reader) int8

func UnmarshalString

func UnmarshalString(r io.Reader) string

func UnmarshalUint16

func UnmarshalUint16(r io.Reader) uint16

func UnmarshalUint32

func UnmarshalUint32(r io.Reader) uint32

func UnmarshalUint64

func UnmarshalUint64(r io.Reader) uint64

func UnmarshalUint8

func UnmarshalUint8(r io.Reader) uint8

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

type HelloWorldHandler interface {
	SayHelloHandler(req []byte) (data []byte, err error)
}

type Serializer

type Serializer interface {
	Marshal() ([]byte, error)
	Unmarshal([]byte) error
}

Jump to

Keyboard shortcuts

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