Back to godoc.org

Package config

v0.0.0-...-f9d7cc8
Latest Go to latest

The latest major version is .

Published: Sep 8, 2020 | License: MIT | Module: github.com/changkun/occamy

Index

Variables

var (
	Version   = "x.y.z"
	BuildTime = "2019-02-01"
	GitCommit = "abcdefg"
)

Only set when built

var Runtime = &config{}

Runtime configurations

func Init

func Init()

Init initialize the runtime configurations

type JWT

type JWT struct {
	Protocol string `form:"protocol" json:"protocol" binding:"required"`
	Host     string `form:"host"     json:"host"     binding:"required"`
	Username string `form:"username" json:"username"`
	Password string `form:"password" json:"password" binding:"required"`
}

JWT is a configuration structure between browser client and server

func (*JWT) GenerateID

func (j *JWT) GenerateID() string

GenerateID generates a unique id based on JWT information

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier