Documentation ¶ Index ¶ func EndCallback(db *gorm.DB, typ string) func GetValue(db *gorm.DB, typ int, key string) (string, error) func SetValue(db *gorm.DB, typ int, key, value string) error type Cursor func GetCursor(db *gorm.DB, typ string) (*Cursor, error) type Dict type ModelTime Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func EndCallback ¶ func EndCallback(db *gorm.DB, typ string) func GetValue ¶ func GetValue(db *gorm.DB, typ int, key string) (string, error) func SetValue ¶ func SetValue(db *gorm.DB, typ int, key, value string) error Types ¶ type Cursor ¶ type Cursor struct { model.Cursor ModelTime } func GetCursor ¶ func GetCursor(db *gorm.DB, typ string) (*Cursor, error) type Dict ¶ type Dict struct { model.Dict ModelTime } type ModelTime ¶ type ModelTime struct { CreatedAt time.Time `json:"created_at" gorm:"default:now()"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"default:null"` } Source Files ¶ View all Source files cursor.go dictionary.go model.go Click to show internal directories. Click to hide internal directories.