dash

package
v0.0.0-...-93f578c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AuthJWT    string     `json:"auth_jwt" yaml:"auth_jwt"`
	RefreshJWT string     `json:"refresh_jwt" yaml:"refresh_jwt"`
	HTTP       HTTPConfig `json:"http" yaml:"http"`
}

type HTTPConfig

type HTTPConfig struct {
	Address string   `json:"address" yaml:"address"`
	PProf   bool     `json:"pprof" yaml:"pprof"`
	Cors    []string `json:"cors" yaml:"cors"`
	Static  string   `json:"static" yaml:"static"`
}

type Web

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

func NewWebServer

func NewWebServer(config *Config, service *dash.Service) *Web

func (*Web) Identifier

func (w *Web) Identifier() string

func (*Web) Start

func (w *Web) Start(ctx context.Context) error

func (*Web) Stop

func (w *Web) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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