infra

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFilename = "notipie.config.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

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

func (*AppContext) Init

func (c *AppContext) Init(config Config)

func (*AppContext) Start

func (c *AppContext) Start()

type Config

type Config struct {
	Prod           bool                `json:"prod"`
	EndpointConfig impl.EndpointConfig `json:"endpointConfig"`
}

func ConfigFromJSON

func ConfigFromJSON(jsonStr string) Config

func DefaultConfig

func DefaultConfig() Config

Jump to

Keyboard shortcuts

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