config

package
v0.0.0-...-b6fdf8c Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Runtime = &config{}

Runtime configurations

Functions

func Init

func Init()

Init initialize the runtime configurations

Types

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

Jump to

Keyboard shortcuts

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