server

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcConsul

type GrpcConsul struct {
	OpenServiceRegister bool
	OpenServiceFind     bool
	Name                string
	GrpcHost            string
	GrpcProt            int
	Target              string
	Interval            time.Duration
	Ttl                 int
}

type GrpcServer

type GrpcServer struct {
	*grpc.Server
	// contains filtered or unexported fields
}
var GrpcServerConn *GrpcServer

func NewGrpcServer

func NewGrpcServer(host string, port int) (grpcServer *GrpcServer, e error)

func (*GrpcServer) Close

func (g *GrpcServer) Close()

func (*GrpcServer) Listen

func (g *GrpcServer) Listen() (e error)

func (*GrpcServer) RegisterConsul

func (g *GrpcServer) RegisterConsul() (e error)

func (*GrpcServer) RegisterProtocol

func (g *GrpcServer) RegisterProtocol()

func (*GrpcServer) RegisterServer

func (g *GrpcServer) RegisterServer() (e error)

func (*GrpcServer) Run

func (g *GrpcServer) Run() (e error)

Jump to

Keyboard shortcuts

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