cfg

package
v0.0.0-...-f12f10f Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 3 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 struct {
	Token               string   `json:"token"`
	Team                []string `json:"team"`
	RepoOwner           string   `json:"owner"`
	MetricsStartingDate string   `json:"timestamp"`
}

Config for gf-metrics

func FromFile

func FromFile(path string) (*Config, error)

FromFile creates a Config from a JSON file

func (*Config) FillEmpty

func (c *Config) FillEmpty(token, owner *string, team *[]string, startDate *string)

FillEmpty fills any empty Config field and update any empty (not nil) value passed as a parameter

Jump to

Keyboard shortcuts

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