credential

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Id       int64     `db:"id"`
	Name     string    `db:"name"` // The credential name
	Type     int64     `db:"type"` // The credential type, 0:normal,1:vip, for test golang keyword
	CreateAt time.Time `db:"create_at"`
	UpdateAt time.Time `db:"update_at"`
}

type CredentialModel

type CredentialModel interface {
	CredentialList(ctx context.Context, options *credentialpb.CredentialListRequest) ([]*Credential, int64, error)
	// contains filtered or unexported methods
}

CredentialModel is an interface to be customized, add more methods here, and implement the added methods in customCredentialModel.

func NewCredentialModel

func NewCredentialModel(conn sqlx.SqlConn) CredentialModel

NewCredentialModel returns a model for the database table.

Jump to

Keyboard shortcuts

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