models

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Services []Service `yaml:"services"`
}

func ConfigFromFile

func ConfigFromFile(filePath string) (*Config, error)

* Get config from yaml file

type Entry

type Entry map[string]string

type Protocol

type Protocol struct {
	Type     string `yaml:"type"`
	Port     int    `yaml:"port"`
	Server   string `yaml:"server"`
	Interval int64  `yaml:"interval"`
	Customs  Entry  `yaml:"customs"`
}

type Service

type Service struct {
	Name      string     `yaml:"name"`
	Protocols []Protocol `yaml:"protocols"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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