server

package
v0.0.0-...-0a3be77 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

Types

type AgentServer

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

func NewAgentServer

func NewAgentServer(port string, dbType datastore.DatastoreType, mode string) (*AgentServer, error)

func (*AgentServer) Close

func (p *AgentServer) Close(shutdownTimeout time.Duration) error

Close shutdown proxy server, timeout=shutdownTimeout

func (*AgentServer) Start

func (p *AgentServer) Start() error

Start proxy server

type ProxyServer

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

func NewProxyServer

func NewProxyServer(port string, dbType datastore.DatastoreType, mode string) (*ProxyServer, error)

func (*ProxyServer) Close

func (p *ProxyServer) Close(shutdownTimeout time.Duration) error

Close shutdown proxy server, timeout=shutdownTimeout

func (*ProxyServer) Start

func (p *ProxyServer) Start() error

Start proxy server

Jump to

Keyboard shortcuts

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