server

package
v1.9.25 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context, addr string) (net.Listener, error)

Types

type Opt

type Opt func(*Server) error

func WithAgentsDir

func WithAgentsDir(dir string) Opt

func WithAgentsPath added in v1.9.16

func WithAgentsPath(agentPath string) Opt

func WithOCIRef added in v1.9.23

func WithOCIRef(teamKey, ociRef string) Opt

type Server

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

func New

func New(sessionStore session.Store, runConfig *config.RuntimeConfig, teams map[string]*team.Team, opts ...Opt) (*Server, error)

func (*Server) ReloadTeams added in v1.9.8

func (s *Server) ReloadTeams(ctx context.Context, agentPath string) error

ReloadTeams loads teams from the specified path and replaces the current teams. This method is thread-safe and ensures ongoing requests are not interrupted.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, ln net.Listener) error

Jump to

Keyboard shortcuts

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