Documentation ¶
Index ¶
- func GenUserToken() string
- type BaseModel
- type Config
- type DB
- func (db *DB) Close()
- func (db *DB) Create(m Model) error
- func (db *DB) CreateUser(m *User) error
- func (db *DB) GenUserSid() string
- func (db *DB) GetUserByGithub(gid int64) (*User, error)
- func (db *DB) GetUserBySid(sid string) (*User, error)
- func (db *DB) GetUserByToken(token string, withapi bool) (*User, error)
- func (db *DB) Update(m Model) error
- func (db *DB) UpdateUser(m *User) error
- func (db *DB) UserExistWithSid(sid string) bool
- type GithubUserInfo
- type Model
- type Notify
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenUserToken ¶
func GenUserToken() string
Types ¶
type DB ¶
func (*DB) CreateUser ¶
func (*DB) GenUserSid ¶
func (*DB) UpdateUser ¶
func (*DB) UserExistWithSid ¶
type GithubUserInfo ¶
type Notify ¶
type Notify struct { Enable bool `json:"enable"` Bark struct { Key string `json:"key"` Server string `json:"server"` } `json:"bark"` Dingtalk struct { Token string `json:"token"` Secret string `json:"secret"` } `json:"dingtalk"` Lark struct { Token string `json:"token"` Secret string `json:"secret"` } `json:"lark"` Feishu struct { Token string `json:"token"` Secret string `json:"secret"` } `json:"feishu"` ServerChan struct { UserID string `json:"user_id"` SendKey string `json:"send_key"` } `json:"serverchan"` }
Click to show internal directories.
Click to hide internal directories.