modules

package
v0.0.0-...-69c59de Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterLogout

func AfterLogout(c echo.Context) error

func AppendUser

func AppendUser(ip string, id string, name string, disc string, nick string)

func CheckRole

func CheckRole(inter []string) string

func ConfigLoad

func ConfigLoad()

func Cryper

func Cryper() []byte

func Decoder

func Decoder(Data string) interface{}

func Decoder_in

func Decoder_in(Data string) interface{}

func DeleteSession

func DeleteSession(c echo.Context)

func EchoLogger

func EchoLogger(next echo.HandlerFunc) echo.HandlerFunc

func Exists

func Exists(name string) bool

func FalseToConvert

func FalseToConvert(path string) string

func Filter

func Filter(mapData interface{}, CutData string, target int64) bool

func GetConfig

func GetConfig() config

func GetFlag

func GetFlag() path

func GuildErrorPages

func GuildErrorPages(c echo.Context) error

func LogFolderCreate

func LogFolderCreate()

func LogWrite

func LogWrite(content string)

func Logger

func Logger(mode string, content string)

func LoginErrorPages

func LoginErrorPages(c echo.Context) error

func ParseFlag

func ParseFlag()

func PrivateErrorPages

func PrivateErrorPages(c echo.Context) error

func ReadSession

func ReadSession(c echo.Context, key string) string

func RoleTest

func RoleTest(inter []string, data string) bool

func StoreCreate

func StoreCreate() sessions.Store

func WriteSession

func WriteSession(c echo.Context, key string, value string)

func XGet

func XGet(url string, header http.Header) string

func XPoster

func XPoster(url string, PostData url.Values) string

Types

type LoginUserConf

type LoginUserConf struct {
	Nick  string   `json:"nick"`
	User  user     `json:"user"`
	Roles []string `json:"roles"`
}

func LoginUserParse

func LoginUserParse(data string) LoginUserConf

type UserLogJson

type UserLogJson struct {
	Time string `json:"time"`
	Name string `json:"name"`
	Nick string `json:"nick"`
	Id   string `json:"id"`
	Ip   string `json:"ip"`
}

Jump to

Keyboard shortcuts

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