server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpProvider added in v0.1.1

func NewHttpProvider(conf config.Config) http.Provider

func NewRpcProvider added in v0.1.1

func NewRpcProvider(conf config.Config) rpc.Provider

Types

type HttpServer

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

func NewHttpServer

func NewHttpServer(cfg config.Config, srv http.Provider, handlerSet *RestfulHandlerSet) *HttpServer

func (*HttpServer) Addr

func (srv *HttpServer) Addr() string

func (*HttpServer) Name

func (srv *HttpServer) Name() string

func (*HttpServer) Run

func (srv *HttpServer) Run() error

func (*HttpServer) Shutdown

func (srv *HttpServer) Shutdown() error

type RestfulHandlerSet

type RestfulHandlerSet struct {
	Handler *restful.Handler
}

type RpcHandlerSet

type RpcHandlerSet struct {
	Handler *rpcHandler.Handler
}

type RpcServer

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

func NewRpcServer

func NewRpcServer(conf config.Config, srv rpc.Provider, handlerSet *RpcHandlerSet) *RpcServer

func (*RpcServer) Addr

func (srv *RpcServer) Addr() string

func (*RpcServer) Name

func (srv *RpcServer) Name() string

func (*RpcServer) Run

func (srv *RpcServer) Run() error

func (*RpcServer) Shutdown

func (srv *RpcServer) Shutdown() error

Jump to

Keyboard shortcuts

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