server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 16 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
}

Server represents the main application server

func New

func New(cfg *config.Config) *Server

New creates a new server instance

func (*Server) Ready

func (s *Server) Ready() <-chan struct{}

Ready returns the ready channel

func (*Server) Records

func (s *Server) Records() *trace.RecordManager

Records returns the record manager

func (*Server) SendPostRequest

func (s *Server) SendPostRequest(ctx context.Context, url, key, model string)

SendPostRequest sends a POST request to test the API

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown gracefully shuts down the server

func (*Server) Start

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

Start starts the server

func (*Server) TunnelURL

func (s *Server) TunnelURL() string

TunnelURL returns the tunnel URL

Jump to

Keyboard shortcuts

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