mmf

package module
v0.0.0-...-239b6c0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 0 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientId     string `hcl:"client_key,optional"`
	ClientSecret string `hcl:"client_secret,optional"`

	Token []TokenConfig `hcl:"token,block"`
}

register generated ClientId at https://www.myminifactory.com/settings/developer/application ClientSecret then arrives by email "You Have been Authorised to use the MyMiniFactory API"

type Credentials

type Credentials struct {
	Username string `hcl:"username,optional"`
	Password string `hcl:"password,optional"`
}

type TokenConfig

type TokenConfig struct {
	Username     string `hcl:"username,label"`
	Type         string `hcl:"token_type,label"`
	AccessToken  string `hcl:"access_token,optional"`
	RefreshToken string `hcl:"refresh_token,optional"`
	Expiry       string `hcl:"expiry,optional"`
}

Directories

Path Synopsis
api
cmd
mmf

Jump to

Keyboard shortcuts

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