appserver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultServerAddr = "0.0.0.0:9056"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Platform         api.Platform
	Repositories     []api.Repository
	RepositoriesByID map[int64]api.Repository
	Addr             string
}

func (*Config) SetRepositories

func (c *Config) SetRepositories(repos []api.Repository)

type Server

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

func NewServer

func NewServer(cfg *Config) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the server and listens for signals to gracefully shut down.

Jump to

Keyboard shortcuts

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