examples

package module
v0.0.0-...-3ea7eb8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetETCDClient

func GetETCDClient() *clientv3.Client

func GetIPAddress

func GetIPAddress() string

func Wait

func Wait()

Types

type Config

type Config struct {
	config.Configuration
}

func Load

func Load(path string) (cfg *Config)

type HelloService

type HelloService struct {
	proto.UnimplementedHelloWorldServer
}

func (*HelloService) Call

func (this *HelloService) Call(ctx context.Context, in *proto.Hello) (*proto.World, error)

func (*HelloService) OnClose

func (this *HelloService) OnClose(sess net4go.Session, err error)

func (*HelloService) OnMessage

func (this *HelloService) OnMessage(sess net4go.Session, p net4go.Packet)

func (*HelloService) Stream

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func NewStream

func NewStream(s proto.HelloWorld_StreamServer) *Stream

func (*Stream) OnClose

func (this *Stream) OnClose(err error)

func (*Stream) RecvPacket

func (this *Stream) RecvPacket() (net4go.Packet, error)

func (*Stream) SendPacket

func (this *Stream) SendPacket(packet net4go.Packet) error

func (*Stream) Wait

func (this *Stream) Wait() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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