models

package
v0.0.0-...-44a0b5b Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalClientConfKey = "localClient"
	InitLocalClientSql = `` /* 275-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID  int64           `json:"id" gorm:"primaryKey"`
	Key string          `json:"key" gorm:"column:k"`
	Val string          `json:"val" gorm:"column:v"`
	Ctx context.Context `json:"-" gorm:"-"`
}

func (Config) GetGormQuery

func (m Config) GetGormQuery() *gorm.DB

func (Config) TableName

func (m Config) TableName() string

func (Config) Update

func (m Config) Update(k, v string) error

Jump to

Keyboard shortcuts

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