Documentation

Index

Constants

This section is empty.

Variables

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

    Only set when built

    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

            Source Files