embedgenerator

package
v0.0.0-...-dff1495 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDir = errors.New("path is dir")

Functions

This section is empty.

Types

type Server

type Server struct {
	*chi.Mux
	// contains filtered or unexported fields
}

func New

func New(staticDir string, connOpt redis.UniversalOptions, launcherURL, previewURL, authKey string) (*Server, error)

func (*Server) Init

func (s *Server) Init() error

func (*Server) SetOpts

func (s *Server) SetOpts(opts ...ServerCfg) error

func (*Server) Shutdown

func (s *Server) Shutdown() error

type ServerCfg

type ServerCfg func(s *Server) error

func WithAssetsProxy

func WithAssetsProxy(prefix, target string) ServerCfg

func WithCacheTTL

func WithCacheTTL(ttl int) ServerCfg

func WithGenerateTimeout

func WithGenerateTimeout(timeout int) ServerCfg

func WithLogger

func WithLogger(logger *slog.Logger) ServerCfg

func WithProxy

func WithProxy(prefix, target string) ServerCfg

func WithSkipTLSVerify

func WithSkipTLSVerify() ServerCfg

Jump to

Keyboard shortcuts

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