apis

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeOptions

type ServeOptions struct {
	SetupOptions

	BindAddress        string
	BindWithDualStack  bool
	TlsMode            TlsMode
	TlsCertFile        string
	TlsPrivateKeyFile  string
	TlsCertDir         string
	TlsAutoCertDomains []string
}

type Server

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

func NewServer

func NewServer() (*Server, error)

func (*Server) Serve

func (s *Server) Serve(c context.Context, opts ServeOptions) error

func (*Server) Setup

func (s *Server) Setup(ctx context.Context, opts SetupOptions) (http.Handler, error)

type SetupOptions

type SetupOptions struct {
	// Configure from launching.
	ConnQPS               int
	ConnBurst             int
	WebsocketConnMaxPerIP int
	// Derived from configuration.
	ProviderService *provider.Service
	TlsCertified    bool
}

type TlsCertDirMode

type TlsCertDirMode = string

type TlsMode

type TlsMode uint64
const (
	TlsModeDisabled TlsMode = iota
	TlsModeSelfGenerated
	TlsModeAutoGenerated
	TlsModeCustomized
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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