Documentation ¶
Index ¶
- func CreateToken(uid int64) (token string, err error)
- func Diff2StructMap(origin, compare interface{}, tag string) (change map[string]interface{})
- func Diff2StructMapAndFromTo(origin, compare interface{}, tag string) (change, fromTo map[string]interface{})
- func DiffStruct(origin, compare interface{}, tag string) (diff string)
- func DiffStructIsChange(origin, compare interface{}) (isChange bool)
- func FileToBase64(fileName, filePath string) (s string, err error)
- func FindInArray[T, K comparable](array []T, compare K, f func(item T, compare K) bool) bool
- func GetExpireTime() (ExpireHour time.Duration)
- func GetExpiresAt() (expiresAt int64)
- func Hash(o string) (s string)
- func Load()
- func NewCron() *cron.Cron
- func Reverse[T comparable](s []T) []T
- func SaveFile(fileName, fileBody, filePath string) (err error)
- type Claims
- type Image
- type MinioOss
- type Oss
- type Payload
- type QiNiuiOss
- type SshSocket
- func (s *SshSocket) Close() (err error)
- func (s *SshSocket) CombinedOutput(cmd string) (b []byte, err error)
- func (s *SshSocket) Run(ws *websocket.Conn)
- func (s *SshSocket) Session() (err error)
- func (s *SshSocket) SetSpeed(speed int) (err error)
- func (s *SshSocket) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func Diff2StructMap ¶
func Diff2StructMapAndFromTo ¶
func DiffStruct ¶
func DiffStructIsChange ¶
func DiffStructIsChange(origin, compare interface{}) (isChange bool)
func FileToBase64 ¶
func FindInArray ¶
func FindInArray[T, K comparable](array []T, compare K, f func(item T, compare K) bool) bool
func GetExpireTime ¶
func GetExpiresAt ¶
func GetExpiresAt() (expiresAt int64)
func Reverse ¶
func Reverse[T comparable](s []T) []T
Types ¶
type MinioOss ¶
type MinioOss struct { Mac *minio.Client // contains filtered or unexported fields }
func NewMinioImage ¶
type Oss ¶
type QiNiuiOss ¶
func NewQiNiuOss ¶
type SshSocket ¶
type SshSocket struct {
// contains filtered or unexported fields
}
func NewSshSocket ¶
func (*SshSocket) CombinedOutput ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.