etc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanicIfErrorExist

func PanicIfErrorExist(err error)

Types

type Config

type Config struct {
	Services []*ServiceConfig
}

func (*Config) FindHost

func (c *Config) FindHost(name string) (*ServiceConfig, bool)

type HostType

type HostType int
const (
	HOST_TYPE_GITHUB HostType = iota + 1
	HOST_TYPE_GITLAB
	HOST_TYPE_BITBUCKET
	HOST_TYPE_GITBUCKET
)

func (HostType) String

func (s HostType) String() string

type ServiceConfig

type ServiceConfig struct {
	Name       string
	Type       string
	OAuthToken string `mapstructure:"oauth_token" yaml:"oauth_token"`
	Protocol   string
}

Jump to

Keyboard shortcuts

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