kk_server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigServer

type ConfigServer struct {
	Port       int
	GrpcPort   int
	ServerName string
	DebugMode  bool
}

func (*ConfigServer) Check

func (c *ConfigServer) Check()

func (*ConfigServer) Close

func (c *ConfigServer) Close()

func (*ConfigServer) Init

func (c *ConfigServer) Init()

type KKRunServer

type KKRunServer struct {
	Run   func()
	Done  func(quitCh <-chan struct{})
	Async bool
	// contains filtered or unexported fields
}

type KKServer

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

func NewKKServer

func NewKKServer(dumpDuration time.Duration, appName string) *KKServer

func (*KKServer) Add

func (x *KKServer) Add(serverName string, server KKRunServer)

func (*KKServer) ServeAndWait

func (x *KKServer) ServeAndWait()

ServeAndWait is used to wait for exit signal to exit all servers

type KKServerDone

type KKServerDone func(quitCh <-chan struct{})

KKServerDone is used to define the server shutdown callback function

Jump to

Keyboard shortcuts

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