server

package
v0.0.0-...-36a2cef Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: BSD-2-Clause, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGRPCServer

func RunGRPCServer(registerServer func(server *grpc.Server))

func RunGRPCServerOnAddr

func RunGRPCServerOnAddr(addr string, registerServer func(server *grpc.Server))

func RunHTTPServer

func RunHTTPServer(createHandler func(router chi.Router) http.Handler)

func RunHTTPServerOnAddr

func RunHTTPServerOnAddr(addr string, createHandler func(router chi.Router) http.Handler)

Types

type PfcpConfig

type PfcpConfig struct {
	// configure for common
	Mtu             int           `json:"mtu"`
	MaxFailureCount int           `json:"maxFailureCount"`
	T3              time.Duration `json:"t3"`
	N3              int           `json:"n3"`
	Heartbeat       bool          `json:"heartbeat"`
	HeartbeatPeriod time.Duration `json:"heartbeatPeriod"`
	// configure for pfcp service
	ServiceEndPoint string `json:"serviceEndPoint"`
}
var DefaultPfcpCfg PfcpConfig

func NewPfcpConfigure

func NewPfcpConfigure() *PfcpConfig

type PfcpHandleFunc

type PfcpHandleFunc func(request *pfcp.Message) (response *pfcp.Message, err error)

type PfcpService

type PfcpService interface {
	Start() error
	Close() error
}

func NewPfcpService

func NewPfcpService(config *PfcpConfig, handleFunc PfcpHandleFunc) (PfcpService, error)

NewPfcpService endPoint: ip:port, for example: :8008, 127.0.0.1:8008

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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