server

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(
	ctx context.Context,
	cfg *config.Config,
	logger log.Logger,
	port int,
) (*Server, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

type ServerStatus

type ServerStatus struct {
	Ready   bool   `json:"ready"`
	Message string `json:"message"`
}

func (*ServerStatus) Disable

func (ss *ServerStatus) Disable(msg string)

func (*ServerStatus) Enable

func (ss *ServerStatus) Enable()

Jump to

Keyboard shortcuts

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