server

package
v0.0.0-...-5b3c1a7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MPL-2.0 Imports: 30 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 New

func New(opts ...ServerOpt) *Server

func (*Server) Serve

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

type ServerOpt

type ServerOpt func(*Server)

func WithDataSources

func WithDataSources(ds []string) ServerOpt

func WithLogFunc

func WithLogFunc(f func(string, ...any)) ServerOpt

func WithProvider

func WithProvider(p provider.Provider) ServerOpt

func WithResources

func WithResources(rs []string) ServerOpt

func WithSockFile

func WithSockFile(path string) ServerOpt

func WithTimeouts

func WithTimeouts(idle, grace time.Duration) ServerOpt

Jump to

Keyboard shortcuts

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