db

package
v0.0.0-...-0606431 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gorm.DB
}

func NewClient

func NewClient(configFile string) (*Client, error)

func (*Client) User

func (c *Client) User(ctx context.Context) *User

type Conf

type Conf struct {
	Host     string `yaml:"Host"`
	Port     int    `yaml:"Port"`
	Database string `yaml:"Database"`
	Username string `yaml:"Username"`
	Password string `yaml:"Password"`
}

type User

type User struct {
	*gorm.DB
}

func (*User) GetById

func (u *User) GetById(id int32) (*model.User, error)

Jump to

Keyboard shortcuts

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