SYMBOL INDEX (1052 symbols across 326 files) FILE: demo01/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo01/main.go function main (line 14) | func main() { function pingServer (line 42) | func pingServer() error { FILE: demo01/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo01/router/router.go function Load (line 13) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo02/config/config.go type Config (line 11) | type Config struct method initConfig (line 31) | func (c *Config) initConfig() error { method watchConfig (line 51) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo02/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo02/main.go function main (line 21) | func main() { function pingServer (line 59) | func pingServer() error { FILE: demo02/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo02/router/router.go function Load (line 13) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo03/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo03/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo03/main.go function main (line 21) | func main() { function pingServer (line 59) | func pingServer() error { FILE: demo03/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo03/router/router.go function Load (line 13) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo04/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo04/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo04/main.go function main (line 22) | func main() { function pingServer (line 64) | func pingServer() error { FILE: demo04/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo04/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo04/router/router.go function Load (line 13) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo05/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo05/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo05/handler/user/create.go function Create (line 14) | func Create(c *gin.Context) { FILE: demo05/main.go function main (line 22) | func main() { function pingServer (line 64) | func pingServer() error { FILE: demo05/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo05/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 31) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 37) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 41) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 46) | func DecodeErr(err error) (int, string) { FILE: demo05/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo05/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo06/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo06/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo06/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo06/handler/user/create.go function Create (line 14) | func Create(c *gin.Context) { FILE: demo06/handler/user/user.go type CreateRequest (line 3) | type CreateRequest struct type CreateResponse (line 8) | type CreateResponse struct FILE: demo06/main.go function main (line 22) | func main() { function pingServer (line 64) | func pingServer() error { FILE: demo06/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo06/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 31) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 37) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 41) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 46) | func DecodeErr(err error) (int, string) { FILE: demo06/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo06/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo07/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo07/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo07/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo07/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo07/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo07/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo07/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo07/handler/user/list.go function List (line 12) | func List(c *gin.Context) { FILE: demo07/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo07/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo07/main.go function main (line 22) | func main() { function pingServer (line 64) | func pingServer() error { FILE: demo07/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo07/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo07/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo07/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo07/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo07/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo07/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo07/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo07/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo07/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo08/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo08/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo08/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo08/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo08/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo08/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo08/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo08/handler/user/list.go function List (line 12) | func List(c *gin.Context) { FILE: demo08/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo08/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo08/main.go function main (line 23) | func main() { function pingServer (line 64) | func pingServer() error { FILE: demo08/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo08/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo08/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo08/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo08/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo08/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo08/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo08/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo08/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo08/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo08/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo08/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo09/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo09/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo09/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo09/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo09/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo09/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo09/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo09/handler/user/list.go function List (line 12) | func List(c *gin.Context) { FILE: demo09/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo09/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo09/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo09/main.go function main (line 23) | func main() { function pingServer (line 64) | func pingServer() error { FILE: demo09/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo09/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo09/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo09/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo09/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo09/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo09/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo09/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo09/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo09/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo09/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo09/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo09/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo09/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo10/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo10/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo10/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo10/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo10/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo10/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo10/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo10/handler/user/list.go function List (line 12) | func List(c *gin.Context) { FILE: demo10/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo10/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo10/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo10/main.go function main (line 23) | func main() { function pingServer (line 74) | func pingServer() error { FILE: demo10/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo10/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo10/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo10/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo10/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo10/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo10/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo10/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo10/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo10/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo10/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo10/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo10/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo10/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo11/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo11/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo11/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo11/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo11/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo11/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo11/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo11/handler/user/list.go function List (line 12) | func List(c *gin.Context) { FILE: demo11/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo11/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo11/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo11/main.go function main (line 23) | func main() { function pingServer (line 74) | func pingServer() error { FILE: demo11/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo11/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo11/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo11/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo11/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo11/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo11/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo11/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo11/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo11/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo11/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo11/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo11/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo11/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo12/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo12/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo12/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo12/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo12/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo12/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo12/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo12/handler/user/list.go function List (line 12) | func List(c *gin.Context) { FILE: demo12/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo12/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo12/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo12/main.go function main (line 28) | func main() { function pingServer (line 90) | func pingServer() error { FILE: demo12/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo12/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo12/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo12/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo12/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo12/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo12/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo12/pkg/version/version.go type Info (line 9) | type Info struct method String (line 20) | func (info Info) String() string { function Get (line 24) | func Get() Info { FILE: demo12/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo12/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo12/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo12/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo12/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo12/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo12/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo13/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo13/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo13/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo13/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo13/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo13/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo13/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo13/handler/user/list.go function List (line 12) | func List(c *gin.Context) { FILE: demo13/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo13/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo13/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo13/main.go function main (line 28) | func main() { function pingServer (line 90) | func pingServer() error { FILE: demo13/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo13/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo13/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo13/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo13/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo13/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo13/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo13/pkg/version/version.go type Info (line 9) | type Info struct method String (line 20) | func (info Info) String() string { function Get (line 24) | func Get() Info { FILE: demo13/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo13/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo13/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo13/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo13/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo13/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo13/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo14/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo14/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo14/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo14/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo14/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo14/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo14/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo14/handler/user/list.go function List (line 13) | func List(c *gin.Context) { FILE: demo14/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo14/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo14/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo14/main.go function main (line 28) | func main() { function pingServer (line 90) | func pingServer() error { FILE: demo14/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo14/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo14/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo14/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo14/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo14/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo14/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo14/pkg/version/version.go type Info (line 9) | type Info struct method String (line 20) | func (info Info) String() string { function Get (line 24) | func Get() Info { FILE: demo14/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo14/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo14/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo14/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo14/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo14/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo14/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo15/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo15/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo15/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo15/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo15/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo15/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo15/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo15/handler/user/list.go function List (line 13) | func List(c *gin.Context) { FILE: demo15/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo15/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo15/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo15/main.go function main (line 28) | func main() { function pingServer (line 90) | func pingServer() error { FILE: demo15/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo15/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo15/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo15/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo15/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo15/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo15/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo15/pkg/version/version.go type Info (line 9) | type Info struct method String (line 20) | func (info Info) String() string { function Get (line 24) | func Get() Info { FILE: demo15/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo15/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo15/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo15/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo15/router/router.go function Load (line 14) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo15/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo15/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo15/util/util_test.go function TestGenShortId (line 7) | func TestGenShortId(t *testing.T) { function BenchmarkGenShortId (line 16) | func BenchmarkGenShortId(b *testing.B) { function BenchmarkGenShortIdTimeConsuming (line 22) | func BenchmarkGenShortIdTimeConsuming(b *testing.B) { FILE: demo16/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo16/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo16/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo16/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 22) | func HealthCheck(c *gin.Context) { function DiskCheck (line 28) | func DiskCheck(c *gin.Context) { function CPUCheck (line 53) | func CPUCheck(c *gin.Context) { function RAMCheck (line 77) | func RAMCheck(c *gin.Context) { FILE: demo16/handler/user/create.go function Create (line 15) | func Create(c *gin.Context) { FILE: demo16/handler/user/delete.go function Delete (line 14) | func Delete(c *gin.Context) { FILE: demo16/handler/user/get.go function Get (line 12) | func Get(c *gin.Context) { FILE: demo16/handler/user/list.go function List (line 13) | func List(c *gin.Context) { FILE: demo16/handler/user/login.go function Login (line 15) | func Login(c *gin.Context) { FILE: demo16/handler/user/update.go function Update (line 17) | func Update(c *gin.Context) { FILE: demo16/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct FILE: demo16/main.go function main (line 29) | func main() { function pingServer (line 91) | func pingServer() error { FILE: demo16/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo16/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo16/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo16/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo16/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo16/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo16/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo16/pkg/version/version.go type Info (line 9) | type Info struct method String (line 20) | func (info Info) String() string { function Get (line 24) | func Get() Info { FILE: demo16/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo16/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo16/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo16/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo16/router/router.go function Load (line 15) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo16/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo16/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo16/util/util_test.go function TestGenShortId (line 7) | func TestGenShortId(t *testing.T) { function BenchmarkGenShortId (line 16) | func BenchmarkGenShortId(b *testing.B) { function BenchmarkGenShortIdTimeConsuming (line 22) | func BenchmarkGenShortIdTimeConsuming(b *testing.B) { FILE: demo17/config/config.go type Config (line 11) | type Config struct method initConfig (line 34) | func (c *Config) initConfig() error { method initLog (line 53) | func (c *Config) initLog() { method watchConfig (line 69) | func (c *Config) watchConfig() { function Init (line 15) | func Init(cfg string) error { FILE: demo17/db.sql type `tb_users` (line 23) | CREATE TABLE `tb_users` ( FILE: demo17/docs/docs.go type s (line 413) | type s struct method ReadDoc (line 415) | func (s *s) ReadDoc() string { function init (line 418) | func init() { FILE: demo17/handler/handler.go type Response (line 11) | type Response struct function SendResponse (line 17) | func SendResponse(c *gin.Context, err error, data interface{}) { FILE: demo17/handler/sd/check.go constant B (line 15) | B = 1 constant KB (line 16) | KB = 1024 * B constant MB (line 17) | MB = 1024 * KB constant GB (line 18) | GB = 1024 * MB function HealthCheck (line 28) | func HealthCheck(c *gin.Context) { function DiskCheck (line 40) | func DiskCheck(c *gin.Context) { function CPUCheck (line 71) | func CPUCheck(c *gin.Context) { function RAMCheck (line 101) | func RAMCheck(c *gin.Context) { FILE: demo17/handler/user/create.go function Create (line 22) | func Create(c *gin.Context) { FILE: demo17/handler/user/delete.go function Delete (line 21) | func Delete(c *gin.Context) { FILE: demo17/handler/user/get.go function Get (line 19) | func Get(c *gin.Context) { FILE: demo17/handler/user/list.go function List (line 20) | func List(c *gin.Context) { FILE: demo17/handler/user/login.go function Login (line 19) | func Login(c *gin.Context) { FILE: demo17/handler/user/update.go function Update (line 25) | func Update(c *gin.Context) { FILE: demo17/handler/user/user.go type CreateRequest (line 7) | type CreateRequest struct type CreateResponse (line 12) | type CreateResponse struct type ListRequest (line 16) | type ListRequest struct type ListResponse (line 22) | type ListResponse struct type SwaggerListResponse (line 27) | type SwaggerListResponse struct FILE: demo17/main.go function main (line 39) | func main() { function pingServer (line 101) | func pingServer() error { FILE: demo17/model/init.go type Database (line 13) | type Database struct method Init (line 70) | func (db *Database) Init() { method Close (line 77) | func (db *Database) Close() { function openDB (line 20) | func openDB(username, password, addr, name string) *gorm.DB { function setupDB (line 41) | func setupDB(db *gorm.DB) { function InitSelfDB (line 48) | func InitSelfDB() *gorm.DB { function GetSelfDB (line 55) | func GetSelfDB() *gorm.DB { function InitDockerDB (line 59) | func InitDockerDB() *gorm.DB { function GetDockerDB (line 66) | func GetDockerDB() *gorm.DB { FILE: demo17/model/model.go type BaseModel (line 8) | type BaseModel struct type UserInfo (line 15) | type UserInfo struct type UserList (line 24) | type UserList struct type Token (line 30) | type Token struct FILE: demo17/model/user.go type UserModel (line 13) | type UserModel struct method TableName (line 19) | func (c *UserModel) TableName() string { method Create (line 24) | func (u *UserModel) Create() error { method Update (line 36) | func (u *UserModel) Update() error { method Compare (line 69) | func (u *UserModel) Compare(pwd string) (err error) { method Encrypt (line 75) | func (u *UserModel) Encrypt() (err error) { method Validate (line 81) | func (u *UserModel) Validate() error { function DeleteUser (line 29) | func DeleteUser(id uint64) error { function GetUser (line 41) | func GetUser(username string) (*UserModel, error) { function ListUser (line 48) | func ListUser(username string, offset, limit int) ([]*UserModel, uint64,... FILE: demo17/pkg/auth/auth.go function Encrypt (line 6) | func Encrypt(source string) (string, error) { function Compare (line 12) | func Compare(hashedPassword, password string) error { FILE: demo17/pkg/constvar/constvar.go constant DefaultLimit (line 4) | DefaultLimit = 50 FILE: demo17/pkg/errno/errno.go type Errno (line 5) | type Errno struct method Error (line 10) | func (err Errno) Error() string { type Err (line 15) | type Err struct method Add (line 25) | func (err *Err) Add(message string) error { method Addf (line 30) | func (err *Err) Addf(format string, args ...interface{}) error { method Error (line 35) | func (err *Err) Error() string { function New (line 21) | func New(errno *Errno, err error) *Err { function IsErrUserNotFound (line 39) | func IsErrUserNotFound(err error) bool { function DecodeErr (line 44) | func DecodeErr(err error) (int, string) { FILE: demo17/pkg/token/token.go type Context (line 19) | type Context struct function secretFunc (line 25) | func secretFunc(secret string) jwt.Keyfunc { function Parse (line 38) | func Parse(tokenString string, secret string) (*Context, error) { function ParseRequest (line 62) | func ParseRequest(c *gin.Context) (*Context, error) { function Sign (line 79) | func Sign(ctx *gin.Context, c Context, secret string) (tokenString strin... FILE: demo17/pkg/version/version.go type Info (line 9) | type Info struct method String (line 20) | func (info Info) String() string { function Get (line 24) | func Get() Info { FILE: demo17/router/middleware/auth.go function AuthMiddleware (line 11) | func AuthMiddleware() gin.HandlerFunc { FILE: demo17/router/middleware/header.go function NoCache (line 12) | func NoCache(c *gin.Context) { function Options (line 22) | func Options(c *gin.Context) { function Secure (line 37) | func Secure(c *gin.Context) { FILE: demo17/router/middleware/logging.go type bodyLogWriter (line 18) | type bodyLogWriter struct method Write (line 23) | func (w bodyLogWriter) Write(b []byte) (int, error) { function Logging (line 29) | func Logging() gin.HandlerFunc { FILE: demo17/router/middleware/requestid.go function RequestId (line 8) | func RequestId() gin.HandlerFunc { FILE: demo17/router/router.go function Load (line 18) | func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine { FILE: demo17/service/service.go function ListUser (line 11) | func ListUser(username string, offset, limit int) ([]*model.UserInfo, ui... FILE: demo17/util/util.go function GenShortId (line 8) | func GenShortId() (string, error) { function GetReqID (line 12) | func GetReqID(c *gin.Context) string { FILE: demo17/util/util_test.go function TestGenShortId (line 7) | func TestGenShortId(t *testing.T) { function BenchmarkGenShortId (line 16) | func BenchmarkGenShortId(b *testing.B) { function BenchmarkGenShortIdTimeConsuming (line 22) | func BenchmarkGenShortIdTimeConsuming(b *testing.B) {