hello

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

code generated by orbit

Index

Constants

View Source
const (
	ServiceHello   = "Hello"
	HelloSayHi     = "SayHi"
	HelloWhoAreYou = "WhoAreYou"
	HelloClockTime = "ClockTime"
)

Hello --------------------- Service

Variables

View Source
var ErrClosed = errors.New("closed")

Functions

This section is empty.

Types

type HelloClientCaller

type HelloClientCaller interface {
	// Calls
	SayHi(ctx context.Context, args *SayHiArgs) (err error)
	// Streams
	ClockTime(ctx context.Context) (ret *TimeReadChan, err error)
}

type HelloClientHandler

type HelloClientHandler interface {
	// Calls
	WhoAreYou(ctx context.Context, s *orbit.Session) (ret *Info, err error)
}

type HelloServerCaller

type HelloServerCaller interface {
	// Calls
	WhoAreYou(ctx context.Context) (ret *Info, err error)
}

type HelloServerHandler

type HelloServerHandler interface {
	// Calls
	SayHi(ctx context.Context, s *orbit.Session, args *SayHiArgs) (err error)
	// Streams
	ClockTime(s *orbit.Session, ret *TimeWriteChan)
}

type Info

type Info struct {
	Name    string `validate:"required,min=1"`
	Age     int    `validate:"required,min=1,max=155"`
	Locale  string `validate:"required,len=5"`
	Address string `validate:"omitempty"`
}

func (*Info) DecodeMsg

func (z *Info) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Info) EncodeMsg

func (z *Info) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Info) MarshalMsg

func (z *Info) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Info) Msgsize

func (z *Info) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Info) UnmarshalMsg

func (z *Info) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type SayHiArgs

type SayHiArgs struct {
	Name string `validate:"required,min=1"`
}

func (*SayHiArgs) DecodeMsg

func (z *SayHiArgs) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (SayHiArgs) EncodeMsg

func (z SayHiArgs) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (SayHiArgs) MarshalMsg

func (z SayHiArgs) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (SayHiArgs) Msgsize

func (z SayHiArgs) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*SayHiArgs) UnmarshalMsg

func (z *SayHiArgs) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type TimeReadChan

type TimeReadChan struct {
	closer.Closer
	// contains filtered or unexported fields
}

func (*TimeReadChan) Read

func (c *TimeReadChan) Read() (arg time.Time, err error)

type TimeWriteChan

type TimeWriteChan struct {
	closer.Closer
	// contains filtered or unexported fields
}

func (*TimeWriteChan) Write

func (c *TimeWriteChan) Write(ret time.Time) (err error)

Jump to

Keyboard shortcuts

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