util

package
v0.0.0-...-8bdf0cb Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostnameBasedToken

func HostnameBasedToken() (string, error)

func HostnameToken

func HostnameToken() (string, error)

func ParseOrgRepo

func ParseOrgRepo(params map[string]string, defaultOrg string) (org string, repo string, err error)

func PrettyUniqueToken

func PrettyUniqueToken() string

func RandomHash

func RandomHash() string

Types

type Token

type Token struct {
	Hash string
}

Token is used to identify and validate requests to this service

var ProcessToken *Token = NewToken()

func NewToken

func NewToken() *Token

func (*Token) Short

func (this *Token) Short() string

Jump to

Keyboard shortcuts

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