config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: BSD-3-Clause Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmsConfig

type CmsConfig struct {
	UserId           uint   `json:"dotlanUserId"`
	TournamentFilter string `json:"dotlanTournamentFilter"`
	DefaultGame      string `json:"defaultGame"`
}

type Config

type Config struct {
	Templates            map[string]string          `json:"templates,omitempty"`
	CmsConfig            CmsConfig                  `json:"cmsConfig"`
	UpdateDotlanOnEvents []messagebroker.MatchEvent `json:"updateDotlanOnEvents"`
}

type ConfigClient

type ConfigClient interface {
	GetConfig() *Config
}

func NewConfigClient

func NewConfigClient() (ConfigClient, error)

func NewConfigFile

func NewConfigFile(ctx context.Context, filename, templatesDirectory string) (ConfigClient, error)

type ConfigClientImpl

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

func (ConfigClientImpl) GetConfig

func (c ConfigClientImpl) GetConfig() *Config

TODO: Implement client for config service

type ConfigFileImpl

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

func (*ConfigFileImpl) GetConfig

func (c *ConfigFileImpl) GetConfig() *Config

Jump to

Keyboard shortcuts

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