config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Kind     kinds.Kind `yaml:"kind",json:"kind"`
	Name     string     `yaml:"name",json:"name"`
	Token    string     `yaml:"token",json:"token"`
	Prefix   string     `yaml:"prefix",json:"prefix"`
	Services struct {
		Database struct {
			MongoDB struct {
				User     string `yaml:"user",json:"user"`
				Password string `yaml:"password",json:"password"`
				Adress   string `yaml:"adress",json:"adress"`
				Database string `yaml:"database",json:"database"`
			} `yaml:"mongodb",json:"mongo_db"`

			SQL struct {
				User     string            `yaml:"user",json:"user"`
				Password string            `yaml:"password",json:"password"`
				Adress   string            `yaml:"adress",json:"adress"`
				Database string            `yaml:"database",json:"database"`
				Params   map[string]string `yaml:"params",json:"params"`
			} `yaml:"sql",json:"sql"`
		} `yaml:"database",json:"database"`
	} `yaml:"services,omitempty",json:"services"`
}

type Config

type Config struct {
	Kind      kinds.Kind          `yaml:"kind"`
	Functions map[string]Function `yaml:"functions"`
}

type Function

type Function struct {
	Type     string `yaml:"type,omitempty",json:"type,omitempty"`
	File     string `yaml:"file",json:"file"`
	Function string `yaml:"function",json:"function"`
	Category string `yamle:"category,omitempty",json:"category,omitempty"`
}

type Secret

type Secret struct {
	Kind    kinds.Kind        `yaml:"kind"`
	Secrets map[string]string `yaml:"secrets"`
}

Jump to

Keyboard shortcuts

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