config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GmailType = "gmail"
)

Variables

View Source
var HttpClient = &http.Client{Transport: http.DefaultTransport, Timeout: 60 * time.Second}

Functions

This section is empty.

Types

type Config

type Config struct {
	Type  string      `json:"type"`
	Token interface{} `json:"token"`
}

func LoadConfig

func LoadConfig(f string) (*Config, error)

func (*Config) UnmarshalJSON

func (cfg *Config) UnmarshalJSON(data []byte) error

type GmailToken

type GmailToken struct {
	Permission string        `json:"permission"`
	Oauth      *oauth2.Token `json:"oauth"`
}

Jump to

Keyboard shortcuts

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