core

package
v0.0.0-...-ef20d55 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr            string
	Host            string
	Socket          string
	CliStartMessage string
	SSL             SSL
}

func (Config) NewServer

func (c Config) NewServer() *Server

type SSL

type SSL struct {
	Cert, Key string
}

type Server

type Server struct {
	Router *mux.Router
	Config
	CliHandler func(*cli.ExitClose) cli.Commander
	// contains filtered or unexported fields
}

func (*Server) Cli

func (s *Server) Cli(ctx cli.Context, onExit func())

func (*Server) Close

func (s *Server) Close() error

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Run

func (s *Server) Run()

func (*Server) RunSocket

func (s *Server) RunSocket()

func (*Server) RunStdIO

func (s *Server) RunStdIO()

Jump to

Keyboard shortcuts

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