config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 11 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 interface {
	Init() (*ConfigYaml, error)
	Read() (*ConfigYaml, error)
}

func NewConfig

func NewConfig() Config

type ConfigSlack

type ConfigSlack struct {
	Token    string               `yaml:"token"`
	Channels []ConfigSlackChannel `yaml:"channels"`
}

type ConfigSlackAction

type ConfigSlackAction struct {
	Message string `yaml:"message"`
}

type ConfigSlackChannel

type ConfigSlackChannel struct {
	Name     string
	ClockIn  *ConfigSlackAction `yaml:"clockin"`
	ClockOut *ConfigSlackAction `yaml:"clockout"`
	GoOut    *ConfigSlackAction `yaml:"goout"`
	Returned *ConfigSlackAction `yaml:"returned"`
}

type ConfigYaml

type ConfigYaml struct {
	TenantCode string       `yaml:"tenantcode"`
	OBCiD      string       `yaml:"obcid"`
	Password   string       `yaml:"password"`
	Slack      *ConfigSlack `yaml:"slack"`
}

Jump to

Keyboard shortcuts

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