project

package
v0.0.0-...-c1fd308 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: GPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config contains logic that manage project configuration files and provide it for other components

func NewConfig

func NewConfig(confDir string, log *logger.Logger) *Config

NewConfig confDir - parameter that sets folder to find configuration files

func (*Config) Configurations

func (c *Config) Configurations() Configurations

type ConfigRow

type ConfigRow struct {
	Courses      string `json:"courses" csv:"courses"`
	Link         string `json:"link" csv:"link"`
	OriginSite   string `json:"origin_site" csv:"origin_site"`
	Profession   string `json:"profession" csv:"profession"`
	Subscription string `json:"subscription" csv:"subscription"`
	Scope        string `json:"types" csv:"scope"`
}

func (*ConfigRow) ToLogrusFields

func (r *ConfigRow) ToLogrusFields() logrus.Fields

type Configurations

type Configurations []ConfigRow

func (Configurations) Normalized

func (c Configurations) Normalized() Configurations

Jump to

Keyboard shortcuts

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