server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToken

func NewToken() string

Types

type Options

type Options struct {
	Agent *agent.Agent
	Store store.Store
	Addr  string
	Token string

	StartExtension func(name string) error
	StopExtension  func(name string) error

	Hub *provider.Hub

	Version string
	Release *release.Checker
}

type Server

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

func New

func New(opts Options) *Server

func (*Server) Handler

func (s *Server) Handler() http.Handler

func (*Server) Listen

func (s *Server) Listen(ctx context.Context, ready func()) error

Jump to

Keyboard shortcuts

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