server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RspSucceed string = "Succeed"
	RspFailed  string = "Failed"
)

Variables

This section is empty.

Functions

func Launch

func Launch(cCtx *cli.Context) error

Types

type AgentOption

type AgentOption func(*EipAgent)

type EipAgent

type EipAgent struct {
	Port          int
	RpcSvc        binding.EipAgentServer
	Ctx           context.Context
	InternalAddrs []string
}

func NewAgent

func NewAgent(opts ...AgentOption) *EipAgent

func (*EipAgent) Serve

func (agent *EipAgent) Serve() error

func (*EipAgent) Stop

func (agent *EipAgent) Stop()

type GrpcServer

type GrpcServer struct {
	binding.UnimplementedEipAgentServer
}

func (*GrpcServer) EipOperate

func (s *GrpcServer) EipOperate(ctx context.Context, req *binding.EipOpReq) (*binding.EipOpRsp, error)

Jump to

Keyboard shortcuts

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