models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by go-queryset. DO NOT EDIT.

Index

Constants

View Source
const AssumeOnlineDuration = time.Second * 120
View Source
const MaxOwnDevice = 10

Variables

View Source
var AuthKeyDBSchema = struct {
	ID        AuthKeyDBSchemaField
	CreatedAt AuthKeyDBSchemaField
	UpdatedAt AuthKeyDBSchemaField
	DeletedAt AuthKeyDBSchemaField
	UserID    AuthKeyDBSchemaField
	User      AuthKeyDBSchemaField
	Type      AuthKeyDBSchemaField
	Role      AuthKeyDBSchemaField
	Key       AuthKeyDBSchemaField
	MachineID AuthKeyDBSchemaField
	ExpiredAt AuthKeyDBSchemaField
	Enabled   AuthKeyDBSchemaField
}{

	ID:        AuthKeyDBSchemaField("id"),
	CreatedAt: AuthKeyDBSchemaField("created_at"),
	UpdatedAt: AuthKeyDBSchemaField("updated_at"),
	DeletedAt: AuthKeyDBSchemaField("deleted_at"),
	UserID:    AuthKeyDBSchemaField("user_id"),
	User:      AuthKeyDBSchemaField("user"),
	Type:      AuthKeyDBSchemaField("type"),
	Role:      AuthKeyDBSchemaField("role"),
	Key:       AuthKeyDBSchemaField("key"),
	MachineID: AuthKeyDBSchemaField("machine_id"),
	ExpiredAt: AuthKeyDBSchemaField("expired_at"),
	Enabled:   AuthKeyDBSchemaField("enabled"),
}

AuthKeyDBSchema stores db field names of AuthKey

View Source
var DeviceDBSchema = struct {
	ID            DeviceDBSchemaField
	CreatedAt     DeviceDBSchemaField
	UpdatedAt     DeviceDBSchemaField
	DeletedAt     DeviceDBSchemaField
	UserID        DeviceDBSchemaField
	User          DeviceDBSchemaField
	RelayServerID DeviceDBSchemaField
	Name          DeviceDBSchemaField
	OS            DeviceDBSchemaField
	Version       DeviceDBSchemaField
	MachineID     DeviceDBSchemaField
	LastSeen      DeviceDBSchemaField
	Address       DeviceDBSchemaField
}{

	ID:            DeviceDBSchemaField("id"),
	CreatedAt:     DeviceDBSchemaField("created_at"),
	UpdatedAt:     DeviceDBSchemaField("updated_at"),
	DeletedAt:     DeviceDBSchemaField("deleted_at"),
	UserID:        DeviceDBSchemaField("user_id"),
	User:          DeviceDBSchemaField("user"),
	RelayServerID: DeviceDBSchemaField("relay_server_id"),
	Name:          DeviceDBSchemaField("name"),
	OS:            DeviceDBSchemaField("os"),
	Version:       DeviceDBSchemaField("version"),
	MachineID:     DeviceDBSchemaField("machine_id"),
	LastSeen:      DeviceDBSchemaField("last_seen"),
	Address:       DeviceDBSchemaField("address"),
}

DeviceDBSchema stores db field names of Device

View Source
var GithubUserDBSchema = struct {
	ID        GithubUserDBSchemaField
	CreatedAt GithubUserDBSchemaField
	UpdatedAt GithubUserDBSchemaField
	DeletedAt GithubUserDBSchemaField
	UserID    GithubUserDBSchemaField
	User      GithubUserDBSchemaField
	GithubID  GithubUserDBSchemaField
	Login     GithubUserDBSchemaField
	AvatarURL GithubUserDBSchemaField
	Location  GithubUserDBSchemaField
}{

	ID:        GithubUserDBSchemaField("id"),
	CreatedAt: GithubUserDBSchemaField("created_at"),
	UpdatedAt: GithubUserDBSchemaField("updated_at"),
	DeletedAt: GithubUserDBSchemaField("deleted_at"),
	UserID:    GithubUserDBSchemaField("user_id"),
	User:      GithubUserDBSchemaField("user"),
	GithubID:  GithubUserDBSchemaField("github_id"),
	Login:     GithubUserDBSchemaField("login"),
	AvatarURL: GithubUserDBSchemaField("avatar_url"),
	Location:  GithubUserDBSchemaField("location"),
}

GithubUserDBSchema stores db field names of GithubUser

View Source
var InvitationDBSchema = struct {
	ID          InvitationDBSchemaField
	CreatedAt   InvitationDBSchemaField
	UpdatedAt   InvitationDBSchemaField
	DeletedAt   InvitationDBSchemaField
	NetworkID   InvitationDBSchemaField
	Network     InvitationDBSchemaField
	InvitedByID InvitationDBSchemaField
	InvitedBy   InvitationDBSchemaField
	UserID      InvitationDBSchemaField
	User        InvitationDBSchemaField
	Role        InvitationDBSchemaField
}{

	ID:          InvitationDBSchemaField("id"),
	CreatedAt:   InvitationDBSchemaField("created_at"),
	UpdatedAt:   InvitationDBSchemaField("updated_at"),
	DeletedAt:   InvitationDBSchemaField("deleted_at"),
	NetworkID:   InvitationDBSchemaField("network_id"),
	Network:     InvitationDBSchemaField("network"),
	InvitedByID: InvitationDBSchemaField("invited_by_id"),
	InvitedBy:   InvitationDBSchemaField("invited_by"),
	UserID:      InvitationDBSchemaField("user_id"),
	User:        InvitationDBSchemaField("user"),
	Role:        InvitationDBSchemaField("role"),
}

InvitationDBSchema stores db field names of Invitation

View Source
var NetworkDBSchema = struct {
	ID          NetworkDBSchemaField
	CreatedAt   NetworkDBSchemaField
	UpdatedAt   NetworkDBSchemaField
	DeletedAt   NetworkDBSchemaField
	CreatedByID NetworkDBSchemaField
	CreatedBy   NetworkDBSchemaField
	Name        NetworkDBSchemaField
	Description NetworkDBSchemaField
}{

	ID:          NetworkDBSchemaField("id"),
	CreatedAt:   NetworkDBSchemaField("created_at"),
	UpdatedAt:   NetworkDBSchemaField("updated_at"),
	DeletedAt:   NetworkDBSchemaField("deleted_at"),
	CreatedByID: NetworkDBSchemaField("created_by_id"),
	CreatedBy:   NetworkDBSchemaField("created_by"),
	Name:        NetworkDBSchemaField("name"),
	Description: NetworkDBSchemaField("description"),
}

NetworkDBSchema stores db field names of Network

View Source
var NetworkUserDBSchema = struct {
	ID        NetworkUserDBSchemaField
	CreatedAt NetworkUserDBSchemaField
	UpdatedAt NetworkUserDBSchemaField
	DeletedAt NetworkUserDBSchemaField
	UserID    NetworkUserDBSchemaField
	User      NetworkUserDBSchemaField
	NetworkID NetworkUserDBSchemaField
	Network   NetworkUserDBSchemaField
	Role      NetworkUserDBSchemaField
}{

	ID:        NetworkUserDBSchemaField("id"),
	CreatedAt: NetworkUserDBSchemaField("created_at"),
	UpdatedAt: NetworkUserDBSchemaField("updated_at"),
	DeletedAt: NetworkUserDBSchemaField("deleted_at"),
	UserID:    NetworkUserDBSchemaField("user_id"),
	User:      NetworkUserDBSchemaField("user"),
	NetworkID: NetworkUserDBSchemaField("network_id"),
	Network:   NetworkUserDBSchemaField("network"),
	Role:      NetworkUserDBSchemaField("role"),
}

NetworkUserDBSchema stores db field names of NetworkUser

View Source
var RelayServerDBSchema = struct {
	ID          RelayServerDBSchemaField
	CreatedAt   RelayServerDBSchemaField
	UpdatedAt   RelayServerDBSchemaField
	DeletedAt   RelayServerDBSchemaField
	Name        RelayServerDBSchemaField
	Region      RelayServerDBSchemaField
	Host        RelayServerDBSchemaField
	Port        RelayServerDBSchemaField
	STUNPort    RelayServerDBSchemaField
	PublicKey   RelayServerDBSchemaField
	StartedAt   RelayServerDBSchemaField
	KeepaliveAt RelayServerDBSchemaField
}{

	ID:          RelayServerDBSchemaField("id"),
	CreatedAt:   RelayServerDBSchemaField("created_at"),
	UpdatedAt:   RelayServerDBSchemaField("updated_at"),
	DeletedAt:   RelayServerDBSchemaField("deleted_at"),
	Name:        RelayServerDBSchemaField("name"),
	Region:      RelayServerDBSchemaField("region"),
	Host:        RelayServerDBSchemaField("host"),
	Port:        RelayServerDBSchemaField("port"),
	STUNPort:    RelayServerDBSchemaField("stun_port"),
	PublicKey:   RelayServerDBSchemaField("public_key"),
	StartedAt:   RelayServerDBSchemaField("started_at"),
	KeepaliveAt: RelayServerDBSchemaField("keepalive_at"),
}

RelayServerDBSchema stores db field names of RelayServer

View Source
var UserDBSchema = struct {
	ID        UserDBSchemaField
	CreatedAt UserDBSchemaField
	UpdatedAt UserDBSchemaField
	DeletedAt UserDBSchemaField
	Email     UserDBSchemaField
	Avatar    UserDBSchemaField
	Name      UserDBSchemaField
	Salt      UserDBSchemaField
	Hash      UserDBSchemaField
	SecretKey UserDBSchemaField
	Origin    UserDBSchemaField
}{

	ID:        UserDBSchemaField("id"),
	CreatedAt: UserDBSchemaField("created_at"),
	UpdatedAt: UserDBSchemaField("updated_at"),
	DeletedAt: UserDBSchemaField("deleted_at"),
	Email:     UserDBSchemaField("email"),
	Avatar:    UserDBSchemaField("avatar"),
	Name:      UserDBSchemaField("name"),
	Salt:      UserDBSchemaField("salt"),
	Hash:      UserDBSchemaField("hash"),
	SecretKey: UserDBSchemaField("secret_key"),
	Origin:    UserDBSchemaField("origin"),
}

UserDBSchema stores db field names of User

View Source
var WechatUserDBSchema = struct {
	ID         WechatUserDBSchemaField
	CreatedAt  WechatUserDBSchemaField
	UpdatedAt  WechatUserDBSchemaField
	DeletedAt  WechatUserDBSchemaField
	UserID     WechatUserDBSchemaField
	User       WechatUserDBSchemaField
	UnionId    WechatUserDBSchemaField
	Nickname   WechatUserDBSchemaField
	HeadImgUrl WechatUserDBSchemaField
	City       WechatUserDBSchemaField
}{

	ID:         WechatUserDBSchemaField("id"),
	CreatedAt:  WechatUserDBSchemaField("created_at"),
	UpdatedAt:  WechatUserDBSchemaField("updated_at"),
	DeletedAt:  WechatUserDBSchemaField("deleted_at"),
	UserID:     WechatUserDBSchemaField("user_id"),
	User:       WechatUserDBSchemaField("user"),
	UnionId:    WechatUserDBSchemaField("union_id"),
	Nickname:   WechatUserDBSchemaField("nickname"),
	HeadImgUrl: WechatUserDBSchemaField("head_img_url"),
	City:       WechatUserDBSchemaField("city"),
}

WechatUserDBSchema stores db field names of WechatUser

Functions

func CreateUser

func CreateUser(tx *gorm.DB, user *User, ssoUser interface{}) error

CreateUser create a new user

func NetworkStats

func NetworkStats(tx *gorm.DB, networkID ID) (userCount, deviceCount int64, err error)

func NextIP

func NextIP(tx *gorm.DB) (string, error)

NextIP retrieve the next available IP address TODO: maybe use algorithm like

Types

type AuthKey

type AuthKey struct {
	Deletable

	UserID    ID        `gorm:"not null"`
	User      *User     `gorm:"foreignkey:UserID"`
	Type      KeyType   `gorm:"not null"`
	Role      KeyType   `gorm:"type:enum('one-off','reusable');default:'reusable'"`
	Key       string    `gorm:"not null;unique"`
	MachineID string    `gorm:"type:varchar(128);"`
	ExpiredAt time.Time `gorm:"not null"`
	Enabled   bool      `gorm:"not null;default:TRUE"`
}

AuthKey stores the pre-authentication keys

func (*AuthKey) Create

func (o *AuthKey) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*AuthKey) Delete

func (o *AuthKey) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*AuthKey) Update

func (o *AuthKey) Update(db *gorm.DB, fields ...AuthKeyDBSchemaField) error

Update updates AuthKey fields by primary key nolint: dupl

type AuthKeyDBSchemaField

type AuthKeyDBSchemaField string

AuthKeyDBSchemaField describes database schema field. It requires for method 'Update'

func (AuthKeyDBSchemaField) String

func (f AuthKeyDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type AuthKeyQuerySet

type AuthKeyQuerySet struct {
	// contains filtered or unexported fields
}

AuthKeyQuerySet is an queryset type for AuthKey

func NewAuthKeyQuerySet

func NewAuthKeyQuerySet(db *gorm.DB) AuthKeyQuerySet

NewAuthKeyQuerySet constructs new AuthKeyQuerySet

func (AuthKeyQuerySet) All

func (qs AuthKeyQuerySet) All(ret *[]AuthKey) error

All is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) Count

func (qs AuthKeyQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) CreatedAtEq

func (qs AuthKeyQuerySet) CreatedAtEq(createdAt time.Time) AuthKeyQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) CreatedAtGt

func (qs AuthKeyQuerySet) CreatedAtGt(createdAt time.Time) AuthKeyQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) CreatedAtGte

func (qs AuthKeyQuerySet) CreatedAtGte(createdAt time.Time) AuthKeyQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) CreatedAtLt

func (qs AuthKeyQuerySet) CreatedAtLt(createdAt time.Time) AuthKeyQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) CreatedAtLte

func (qs AuthKeyQuerySet) CreatedAtLte(createdAt time.Time) AuthKeyQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) CreatedAtNe

func (qs AuthKeyQuerySet) CreatedAtNe(createdAt time.Time) AuthKeyQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) Delete

func (qs AuthKeyQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeleteNum

func (qs AuthKeyQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeleteNumUnscoped

func (qs AuthKeyQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtEq

func (qs AuthKeyQuerySet) DeletedAtEq(deletedAt time.Time) AuthKeyQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtGt

func (qs AuthKeyQuerySet) DeletedAtGt(deletedAt time.Time) AuthKeyQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtGte

func (qs AuthKeyQuerySet) DeletedAtGte(deletedAt time.Time) AuthKeyQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtIsNotNull

func (qs AuthKeyQuerySet) DeletedAtIsNotNull() AuthKeyQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtIsNull

func (qs AuthKeyQuerySet) DeletedAtIsNull() AuthKeyQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtLt

func (qs AuthKeyQuerySet) DeletedAtLt(deletedAt time.Time) AuthKeyQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtLte

func (qs AuthKeyQuerySet) DeletedAtLte(deletedAt time.Time) AuthKeyQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) DeletedAtNe

func (qs AuthKeyQuerySet) DeletedAtNe(deletedAt time.Time) AuthKeyQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) EnabledEq

func (qs AuthKeyQuerySet) EnabledEq(enabled bool) AuthKeyQuerySet

EnabledEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) EnabledIn

func (qs AuthKeyQuerySet) EnabledIn(enabled ...bool) AuthKeyQuerySet

EnabledIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) EnabledNe

func (qs AuthKeyQuerySet) EnabledNe(enabled bool) AuthKeyQuerySet

EnabledNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) EnabledNotIn

func (qs AuthKeyQuerySet) EnabledNotIn(enabled ...bool) AuthKeyQuerySet

EnabledNotIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) ExpiredAtEq

func (qs AuthKeyQuerySet) ExpiredAtEq(expiredAt time.Time) AuthKeyQuerySet

ExpiredAtEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) ExpiredAtGt

func (qs AuthKeyQuerySet) ExpiredAtGt(expiredAt time.Time) AuthKeyQuerySet

ExpiredAtGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) ExpiredAtGte

func (qs AuthKeyQuerySet) ExpiredAtGte(expiredAt time.Time) AuthKeyQuerySet

ExpiredAtGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) ExpiredAtLt

func (qs AuthKeyQuerySet) ExpiredAtLt(expiredAt time.Time) AuthKeyQuerySet

ExpiredAtLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) ExpiredAtLte

func (qs AuthKeyQuerySet) ExpiredAtLte(expiredAt time.Time) AuthKeyQuerySet

ExpiredAtLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) ExpiredAtNe

func (qs AuthKeyQuerySet) ExpiredAtNe(expiredAt time.Time) AuthKeyQuerySet

ExpiredAtNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) GetDB

func (qs AuthKeyQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) GetUpdater

func (qs AuthKeyQuerySet) GetUpdater() AuthKeyUpdater

GetUpdater is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDEq

func (qs AuthKeyQuerySet) IDEq(ID ID) AuthKeyQuerySet

IDEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDGt

func (qs AuthKeyQuerySet) IDGt(ID ID) AuthKeyQuerySet

IDGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDGte

func (qs AuthKeyQuerySet) IDGte(ID ID) AuthKeyQuerySet

IDGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDIn

func (qs AuthKeyQuerySet) IDIn(ID ...ID) AuthKeyQuerySet

IDIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDLt

func (qs AuthKeyQuerySet) IDLt(ID ID) AuthKeyQuerySet

IDLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDLte

func (qs AuthKeyQuerySet) IDLte(ID ID) AuthKeyQuerySet

IDLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDNe

func (qs AuthKeyQuerySet) IDNe(ID ID) AuthKeyQuerySet

IDNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) IDNotIn

func (qs AuthKeyQuerySet) IDNotIn(ID ...ID) AuthKeyQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyEq

func (qs AuthKeyQuerySet) KeyEq(key string) AuthKeyQuerySet

KeyEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyGt

func (qs AuthKeyQuerySet) KeyGt(key string) AuthKeyQuerySet

KeyGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyGte

func (qs AuthKeyQuerySet) KeyGte(key string) AuthKeyQuerySet

KeyGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyIn

func (qs AuthKeyQuerySet) KeyIn(key ...string) AuthKeyQuerySet

KeyIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyLike

func (qs AuthKeyQuerySet) KeyLike(key string) AuthKeyQuerySet

KeyLike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyLt

func (qs AuthKeyQuerySet) KeyLt(key string) AuthKeyQuerySet

KeyLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyLte

func (qs AuthKeyQuerySet) KeyLte(key string) AuthKeyQuerySet

KeyLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyNe

func (qs AuthKeyQuerySet) KeyNe(key string) AuthKeyQuerySet

KeyNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyNotIn

func (qs AuthKeyQuerySet) KeyNotIn(key ...string) AuthKeyQuerySet

KeyNotIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) KeyNotlike

func (qs AuthKeyQuerySet) KeyNotlike(key string) AuthKeyQuerySet

KeyNotlike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) Limit

func (qs AuthKeyQuerySet) Limit(limit int) AuthKeyQuerySet

Limit is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDEq

func (qs AuthKeyQuerySet) MachineIDEq(machineID string) AuthKeyQuerySet

MachineIDEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDGt

func (qs AuthKeyQuerySet) MachineIDGt(machineID string) AuthKeyQuerySet

MachineIDGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDGte

func (qs AuthKeyQuerySet) MachineIDGte(machineID string) AuthKeyQuerySet

MachineIDGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDIn

func (qs AuthKeyQuerySet) MachineIDIn(machineID ...string) AuthKeyQuerySet

MachineIDIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDLike

func (qs AuthKeyQuerySet) MachineIDLike(machineID string) AuthKeyQuerySet

MachineIDLike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDLt

func (qs AuthKeyQuerySet) MachineIDLt(machineID string) AuthKeyQuerySet

MachineIDLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDLte

func (qs AuthKeyQuerySet) MachineIDLte(machineID string) AuthKeyQuerySet

MachineIDLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDNe

func (qs AuthKeyQuerySet) MachineIDNe(machineID string) AuthKeyQuerySet

MachineIDNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDNotIn

func (qs AuthKeyQuerySet) MachineIDNotIn(machineID ...string) AuthKeyQuerySet

MachineIDNotIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) MachineIDNotlike

func (qs AuthKeyQuerySet) MachineIDNotlike(machineID string) AuthKeyQuerySet

MachineIDNotlike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) Offset

func (qs AuthKeyQuerySet) Offset(offset int) AuthKeyQuerySet

Offset is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) One

func (qs AuthKeyQuerySet) One(ret *AuthKey) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (AuthKeyQuerySet) OrderAscByCreatedAt

func (qs AuthKeyQuerySet) OrderAscByCreatedAt() AuthKeyQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByDeletedAt

func (qs AuthKeyQuerySet) OrderAscByDeletedAt() AuthKeyQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByEnabled

func (qs AuthKeyQuerySet) OrderAscByEnabled() AuthKeyQuerySet

OrderAscByEnabled is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByExpiredAt

func (qs AuthKeyQuerySet) OrderAscByExpiredAt() AuthKeyQuerySet

OrderAscByExpiredAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByID

func (qs AuthKeyQuerySet) OrderAscByID() AuthKeyQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByKey

func (qs AuthKeyQuerySet) OrderAscByKey() AuthKeyQuerySet

OrderAscByKey is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByMachineID

func (qs AuthKeyQuerySet) OrderAscByMachineID() AuthKeyQuerySet

OrderAscByMachineID is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByRole

func (qs AuthKeyQuerySet) OrderAscByRole() AuthKeyQuerySet

OrderAscByRole is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByType

func (qs AuthKeyQuerySet) OrderAscByType() AuthKeyQuerySet

OrderAscByType is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByUpdatedAt

func (qs AuthKeyQuerySet) OrderAscByUpdatedAt() AuthKeyQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderAscByUserID

func (qs AuthKeyQuerySet) OrderAscByUserID() AuthKeyQuerySet

OrderAscByUserID is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByCreatedAt

func (qs AuthKeyQuerySet) OrderDescByCreatedAt() AuthKeyQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByDeletedAt

func (qs AuthKeyQuerySet) OrderDescByDeletedAt() AuthKeyQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByEnabled

func (qs AuthKeyQuerySet) OrderDescByEnabled() AuthKeyQuerySet

OrderDescByEnabled is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByExpiredAt

func (qs AuthKeyQuerySet) OrderDescByExpiredAt() AuthKeyQuerySet

OrderDescByExpiredAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByID

func (qs AuthKeyQuerySet) OrderDescByID() AuthKeyQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByKey

func (qs AuthKeyQuerySet) OrderDescByKey() AuthKeyQuerySet

OrderDescByKey is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByMachineID

func (qs AuthKeyQuerySet) OrderDescByMachineID() AuthKeyQuerySet

OrderDescByMachineID is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByRole

func (qs AuthKeyQuerySet) OrderDescByRole() AuthKeyQuerySet

OrderDescByRole is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByType

func (qs AuthKeyQuerySet) OrderDescByType() AuthKeyQuerySet

OrderDescByType is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByUpdatedAt

func (qs AuthKeyQuerySet) OrderDescByUpdatedAt() AuthKeyQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) OrderDescByUserID

func (qs AuthKeyQuerySet) OrderDescByUserID() AuthKeyQuerySet

OrderDescByUserID is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) Preload

func (qs AuthKeyQuerySet) Preload(query string, args ...interface{}) AuthKeyQuerySet

func (AuthKeyQuerySet) PreloadUser

func (qs AuthKeyQuerySet) PreloadUser() AuthKeyQuerySet

PreloadUser is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleEq

func (qs AuthKeyQuerySet) RoleEq(role KeyType) AuthKeyQuerySet

RoleEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleGt

func (qs AuthKeyQuerySet) RoleGt(role KeyType) AuthKeyQuerySet

RoleGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleGte

func (qs AuthKeyQuerySet) RoleGte(role KeyType) AuthKeyQuerySet

RoleGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleIn

func (qs AuthKeyQuerySet) RoleIn(role ...KeyType) AuthKeyQuerySet

RoleIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleLike

func (qs AuthKeyQuerySet) RoleLike(role KeyType) AuthKeyQuerySet

RoleLike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleLt

func (qs AuthKeyQuerySet) RoleLt(role KeyType) AuthKeyQuerySet

RoleLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleLte

func (qs AuthKeyQuerySet) RoleLte(role KeyType) AuthKeyQuerySet

RoleLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleNe

func (qs AuthKeyQuerySet) RoleNe(role KeyType) AuthKeyQuerySet

RoleNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleNotIn

func (qs AuthKeyQuerySet) RoleNotIn(role ...KeyType) AuthKeyQuerySet

RoleNotIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) RoleNotlike

func (qs AuthKeyQuerySet) RoleNotlike(role KeyType) AuthKeyQuerySet

RoleNotlike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) Select

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (AuthKeyQuerySet) TypeEq

func (qs AuthKeyQuerySet) TypeEq(typeValue KeyType) AuthKeyQuerySet

TypeEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeGt

func (qs AuthKeyQuerySet) TypeGt(typeValue KeyType) AuthKeyQuerySet

TypeGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeGte

func (qs AuthKeyQuerySet) TypeGte(typeValue KeyType) AuthKeyQuerySet

TypeGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeIn

func (qs AuthKeyQuerySet) TypeIn(typeValue ...KeyType) AuthKeyQuerySet

TypeIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeLike

func (qs AuthKeyQuerySet) TypeLike(typeValue KeyType) AuthKeyQuerySet

TypeLike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeLt

func (qs AuthKeyQuerySet) TypeLt(typeValue KeyType) AuthKeyQuerySet

TypeLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeLte

func (qs AuthKeyQuerySet) TypeLte(typeValue KeyType) AuthKeyQuerySet

TypeLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeNe

func (qs AuthKeyQuerySet) TypeNe(typeValue KeyType) AuthKeyQuerySet

TypeNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeNotIn

func (qs AuthKeyQuerySet) TypeNotIn(typeValue ...KeyType) AuthKeyQuerySet

TypeNotIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) TypeNotlike

func (qs AuthKeyQuerySet) TypeNotlike(typeValue KeyType) AuthKeyQuerySet

TypeNotlike is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtEq

func (qs AuthKeyQuerySet) UpdatedAtEq(updatedAt time.Time) AuthKeyQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtGt

func (qs AuthKeyQuerySet) UpdatedAtGt(updatedAt time.Time) AuthKeyQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtGte

func (qs AuthKeyQuerySet) UpdatedAtGte(updatedAt time.Time) AuthKeyQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtIsNotNull

func (qs AuthKeyQuerySet) UpdatedAtIsNotNull() AuthKeyQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtIsNull

func (qs AuthKeyQuerySet) UpdatedAtIsNull() AuthKeyQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtLt

func (qs AuthKeyQuerySet) UpdatedAtLt(updatedAt time.Time) AuthKeyQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtLte

func (qs AuthKeyQuerySet) UpdatedAtLte(updatedAt time.Time) AuthKeyQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UpdatedAtNe

func (qs AuthKeyQuerySet) UpdatedAtNe(updatedAt time.Time) AuthKeyQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDEq

func (qs AuthKeyQuerySet) UserIDEq(userID ID) AuthKeyQuerySet

UserIDEq is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDGt

func (qs AuthKeyQuerySet) UserIDGt(userID ID) AuthKeyQuerySet

UserIDGt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDGte

func (qs AuthKeyQuerySet) UserIDGte(userID ID) AuthKeyQuerySet

UserIDGte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDIn

func (qs AuthKeyQuerySet) UserIDIn(userID ...ID) AuthKeyQuerySet

UserIDIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDLt

func (qs AuthKeyQuerySet) UserIDLt(userID ID) AuthKeyQuerySet

UserIDLt is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDLte

func (qs AuthKeyQuerySet) UserIDLte(userID ID) AuthKeyQuerySet

UserIDLte is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDNe

func (qs AuthKeyQuerySet) UserIDNe(userID ID) AuthKeyQuerySet

UserIDNe is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIDNotIn

func (qs AuthKeyQuerySet) UserIDNotIn(userID ...ID) AuthKeyQuerySet

UserIDNotIn is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIsNotNull

func (qs AuthKeyQuerySet) UserIsNotNull() AuthKeyQuerySet

UserIsNotNull is an autogenerated method nolint: dupl

func (AuthKeyQuerySet) UserIsNull

func (qs AuthKeyQuerySet) UserIsNull() AuthKeyQuerySet

UserIsNull is an autogenerated method nolint: dupl

type AuthKeyUpdater

type AuthKeyUpdater struct {
	// contains filtered or unexported fields
}

AuthKeyUpdater is an AuthKey updates manager

func NewAuthKeyUpdater

func NewAuthKeyUpdater(db *gorm.DB) AuthKeyUpdater

NewAuthKeyUpdater creates new AuthKey updater nolint: dupl

func (AuthKeyUpdater) SetCreatedAt

func (u AuthKeyUpdater) SetCreatedAt(createdAt time.Time) AuthKeyUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetDeletedAt

func (u AuthKeyUpdater) SetDeletedAt(deletedAt *time.Time) AuthKeyUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetEnabled

func (u AuthKeyUpdater) SetEnabled(enabled bool) AuthKeyUpdater

SetEnabled is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetExpiredAt

func (u AuthKeyUpdater) SetExpiredAt(expiredAt time.Time) AuthKeyUpdater

SetExpiredAt is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetID

func (u AuthKeyUpdater) SetID(ID ID) AuthKeyUpdater

SetID is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetKey

func (u AuthKeyUpdater) SetKey(key string) AuthKeyUpdater

SetKey is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetMachineID

func (u AuthKeyUpdater) SetMachineID(machineID string) AuthKeyUpdater

SetMachineID is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetRole

func (u AuthKeyUpdater) SetRole(role KeyType) AuthKeyUpdater

SetRole is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetType

func (u AuthKeyUpdater) SetType(typeValue KeyType) AuthKeyUpdater

SetType is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetUpdatedAt

func (u AuthKeyUpdater) SetUpdatedAt(updatedAt *time.Time) AuthKeyUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (AuthKeyUpdater) SetUserID

func (u AuthKeyUpdater) SetUserID(userID ID) AuthKeyUpdater

SetUserID is an autogenerated method nolint: dupl

func (AuthKeyUpdater) Update

func (u AuthKeyUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (AuthKeyUpdater) UpdateNum

func (u AuthKeyUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type Base

type Base struct {
	ID        ID        `gorm:"not null"`
	CreatedAt time.Time `gorm:"not null"`
}

Base is the base columns of all tables

type Deletable

type Deletable struct {
	Updatable
	DeletedAt *time.Time
}

Deletable is the base columns of deletable tables

type Device

type Device struct {
	Deletable

	UserID        ID        `gorm:"not null;index"`
	User          *User     `gorm:"foreignkey:UserID"`
	RelayServerID ID        `gorm:"not null"`
	Name          string    `gorm:"type:varchar(128)"`
	OS            string    `gorm:"type:varchar(32);not null"`
	Version       string    `gorm:"type:varchar(32);not null"`
	MachineID     string    `gorm:"type:varchar(128);not null"`
	LastSeen      time.Time `gorm:"not null"`
	Address       string    `gorm:"type:varchar(32);not null"`
}

Device represents a virtual network device

func PeerDevices

func PeerDevices(tx *gorm.DB, userID ID) ([]Device, error)

PeerDevices returns all peer devices of the specified user identifier.

func (*Device) Create

func (o *Device) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*Device) Delete

func (o *Device) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*Device) Update

func (o *Device) Update(db *gorm.DB, fields ...DeviceDBSchemaField) error

Update updates Device fields by primary key nolint: dupl

type DeviceDBSchemaField

type DeviceDBSchemaField string

DeviceDBSchemaField describes database schema field. It requires for method 'Update'

func (DeviceDBSchemaField) String

func (f DeviceDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type DeviceQuerySet

type DeviceQuerySet struct {
	// contains filtered or unexported fields
}

DeviceQuerySet is an queryset type for Device

func NewDeviceQuerySet

func NewDeviceQuerySet(db *gorm.DB) DeviceQuerySet

NewDeviceQuerySet constructs new DeviceQuerySet

func (DeviceQuerySet) AddressEq

func (qs DeviceQuerySet) AddressEq(address string) DeviceQuerySet

AddressEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressGt

func (qs DeviceQuerySet) AddressGt(address string) DeviceQuerySet

AddressGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressGte

func (qs DeviceQuerySet) AddressGte(address string) DeviceQuerySet

AddressGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressIn

func (qs DeviceQuerySet) AddressIn(address ...string) DeviceQuerySet

AddressIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressLike

func (qs DeviceQuerySet) AddressLike(address string) DeviceQuerySet

AddressLike is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressLt

func (qs DeviceQuerySet) AddressLt(address string) DeviceQuerySet

AddressLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressLte

func (qs DeviceQuerySet) AddressLte(address string) DeviceQuerySet

AddressLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressNe

func (qs DeviceQuerySet) AddressNe(address string) DeviceQuerySet

AddressNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressNotIn

func (qs DeviceQuerySet) AddressNotIn(address ...string) DeviceQuerySet

AddressNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) AddressNotlike

func (qs DeviceQuerySet) AddressNotlike(address string) DeviceQuerySet

AddressNotlike is an autogenerated method nolint: dupl

func (DeviceQuerySet) All

func (qs DeviceQuerySet) All(ret *[]Device) error

All is an autogenerated method nolint: dupl

func (DeviceQuerySet) Count

func (qs DeviceQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (DeviceQuerySet) CreatedAtEq

func (qs DeviceQuerySet) CreatedAtEq(createdAt time.Time) DeviceQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) CreatedAtGt

func (qs DeviceQuerySet) CreatedAtGt(createdAt time.Time) DeviceQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) CreatedAtGte

func (qs DeviceQuerySet) CreatedAtGte(createdAt time.Time) DeviceQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) CreatedAtLt

func (qs DeviceQuerySet) CreatedAtLt(createdAt time.Time) DeviceQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) CreatedAtLte

func (qs DeviceQuerySet) CreatedAtLte(createdAt time.Time) DeviceQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) CreatedAtNe

func (qs DeviceQuerySet) CreatedAtNe(createdAt time.Time) DeviceQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) Delete

func (qs DeviceQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeleteNum

func (qs DeviceQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeleteNumUnscoped

func (qs DeviceQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtEq

func (qs DeviceQuerySet) DeletedAtEq(deletedAt time.Time) DeviceQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtGt

func (qs DeviceQuerySet) DeletedAtGt(deletedAt time.Time) DeviceQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtGte

func (qs DeviceQuerySet) DeletedAtGte(deletedAt time.Time) DeviceQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtIsNotNull

func (qs DeviceQuerySet) DeletedAtIsNotNull() DeviceQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtIsNull

func (qs DeviceQuerySet) DeletedAtIsNull() DeviceQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtLt

func (qs DeviceQuerySet) DeletedAtLt(deletedAt time.Time) DeviceQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtLte

func (qs DeviceQuerySet) DeletedAtLte(deletedAt time.Time) DeviceQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) DeletedAtNe

func (qs DeviceQuerySet) DeletedAtNe(deletedAt time.Time) DeviceQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) GetDB

func (qs DeviceQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (DeviceQuerySet) GetUpdater

func (qs DeviceQuerySet) GetUpdater() DeviceUpdater

GetUpdater is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDEq

func (qs DeviceQuerySet) IDEq(ID ID) DeviceQuerySet

IDEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDGt

func (qs DeviceQuerySet) IDGt(ID ID) DeviceQuerySet

IDGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDGte

func (qs DeviceQuerySet) IDGte(ID ID) DeviceQuerySet

IDGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDIn

func (qs DeviceQuerySet) IDIn(ID ...ID) DeviceQuerySet

IDIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDLt

func (qs DeviceQuerySet) IDLt(ID ID) DeviceQuerySet

IDLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDLte

func (qs DeviceQuerySet) IDLte(ID ID) DeviceQuerySet

IDLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDNe

func (qs DeviceQuerySet) IDNe(ID ID) DeviceQuerySet

IDNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) IDNotIn

func (qs DeviceQuerySet) IDNotIn(ID ...ID) DeviceQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) LastSeenEq

func (qs DeviceQuerySet) LastSeenEq(lastSeen time.Time) DeviceQuerySet

LastSeenEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) LastSeenGt

func (qs DeviceQuerySet) LastSeenGt(lastSeen time.Time) DeviceQuerySet

LastSeenGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) LastSeenGte

func (qs DeviceQuerySet) LastSeenGte(lastSeen time.Time) DeviceQuerySet

LastSeenGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) LastSeenLt

func (qs DeviceQuerySet) LastSeenLt(lastSeen time.Time) DeviceQuerySet

LastSeenLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) LastSeenLte

func (qs DeviceQuerySet) LastSeenLte(lastSeen time.Time) DeviceQuerySet

LastSeenLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) LastSeenNe

func (qs DeviceQuerySet) LastSeenNe(lastSeen time.Time) DeviceQuerySet

LastSeenNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) Limit

func (qs DeviceQuerySet) Limit(limit int) DeviceQuerySet

Limit is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDEq

func (qs DeviceQuerySet) MachineIDEq(machineID string) DeviceQuerySet

MachineIDEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDGt

func (qs DeviceQuerySet) MachineIDGt(machineID string) DeviceQuerySet

MachineIDGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDGte

func (qs DeviceQuerySet) MachineIDGte(machineID string) DeviceQuerySet

MachineIDGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDIn

func (qs DeviceQuerySet) MachineIDIn(machineID ...string) DeviceQuerySet

MachineIDIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDLike

func (qs DeviceQuerySet) MachineIDLike(machineID string) DeviceQuerySet

MachineIDLike is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDLt

func (qs DeviceQuerySet) MachineIDLt(machineID string) DeviceQuerySet

MachineIDLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDLte

func (qs DeviceQuerySet) MachineIDLte(machineID string) DeviceQuerySet

MachineIDLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDNe

func (qs DeviceQuerySet) MachineIDNe(machineID string) DeviceQuerySet

MachineIDNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDNotIn

func (qs DeviceQuerySet) MachineIDNotIn(machineID ...string) DeviceQuerySet

MachineIDNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) MachineIDNotlike

func (qs DeviceQuerySet) MachineIDNotlike(machineID string) DeviceQuerySet

MachineIDNotlike is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameEq

func (qs DeviceQuerySet) NameEq(name string) DeviceQuerySet

NameEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameGt

func (qs DeviceQuerySet) NameGt(name string) DeviceQuerySet

NameGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameGte

func (qs DeviceQuerySet) NameGte(name string) DeviceQuerySet

NameGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameIn

func (qs DeviceQuerySet) NameIn(name ...string) DeviceQuerySet

NameIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameLike

func (qs DeviceQuerySet) NameLike(name string) DeviceQuerySet

NameLike is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameLt

func (qs DeviceQuerySet) NameLt(name string) DeviceQuerySet

NameLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameLte

func (qs DeviceQuerySet) NameLte(name string) DeviceQuerySet

NameLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameNe

func (qs DeviceQuerySet) NameNe(name string) DeviceQuerySet

NameNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameNotIn

func (qs DeviceQuerySet) NameNotIn(name ...string) DeviceQuerySet

NameNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) NameNotlike

func (qs DeviceQuerySet) NameNotlike(name string) DeviceQuerySet

NameNotlike is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSEq

func (qs DeviceQuerySet) OSEq(oS string) DeviceQuerySet

OSEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSGt

func (qs DeviceQuerySet) OSGt(oS string) DeviceQuerySet

OSGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSGte

func (qs DeviceQuerySet) OSGte(oS string) DeviceQuerySet

OSGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSIn

func (qs DeviceQuerySet) OSIn(oS ...string) DeviceQuerySet

OSIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSLike

func (qs DeviceQuerySet) OSLike(oS string) DeviceQuerySet

OSLike is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSLt

func (qs DeviceQuerySet) OSLt(oS string) DeviceQuerySet

OSLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSLte

func (qs DeviceQuerySet) OSLte(oS string) DeviceQuerySet

OSLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSNe

func (qs DeviceQuerySet) OSNe(oS string) DeviceQuerySet

OSNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSNotIn

func (qs DeviceQuerySet) OSNotIn(oS ...string) DeviceQuerySet

OSNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) OSNotlike

func (qs DeviceQuerySet) OSNotlike(oS string) DeviceQuerySet

OSNotlike is an autogenerated method nolint: dupl

func (DeviceQuerySet) Offset

func (qs DeviceQuerySet) Offset(offset int) DeviceQuerySet

Offset is an autogenerated method nolint: dupl

func (DeviceQuerySet) One

func (qs DeviceQuerySet) One(ret *Device) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (DeviceQuerySet) OrderAscByAddress

func (qs DeviceQuerySet) OrderAscByAddress() DeviceQuerySet

OrderAscByAddress is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByCreatedAt

func (qs DeviceQuerySet) OrderAscByCreatedAt() DeviceQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByDeletedAt

func (qs DeviceQuerySet) OrderAscByDeletedAt() DeviceQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByID

func (qs DeviceQuerySet) OrderAscByID() DeviceQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByLastSeen

func (qs DeviceQuerySet) OrderAscByLastSeen() DeviceQuerySet

OrderAscByLastSeen is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByMachineID

func (qs DeviceQuerySet) OrderAscByMachineID() DeviceQuerySet

OrderAscByMachineID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByName

func (qs DeviceQuerySet) OrderAscByName() DeviceQuerySet

OrderAscByName is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByOS

func (qs DeviceQuerySet) OrderAscByOS() DeviceQuerySet

OrderAscByOS is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByRelayServerID

func (qs DeviceQuerySet) OrderAscByRelayServerID() DeviceQuerySet

OrderAscByRelayServerID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByUpdatedAt

func (qs DeviceQuerySet) OrderAscByUpdatedAt() DeviceQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByUserID

func (qs DeviceQuerySet) OrderAscByUserID() DeviceQuerySet

OrderAscByUserID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderAscByVersion

func (qs DeviceQuerySet) OrderAscByVersion() DeviceQuerySet

OrderAscByVersion is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByAddress

func (qs DeviceQuerySet) OrderDescByAddress() DeviceQuerySet

OrderDescByAddress is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByCreatedAt

func (qs DeviceQuerySet) OrderDescByCreatedAt() DeviceQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByDeletedAt

func (qs DeviceQuerySet) OrderDescByDeletedAt() DeviceQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByID

func (qs DeviceQuerySet) OrderDescByID() DeviceQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByLastSeen

func (qs DeviceQuerySet) OrderDescByLastSeen() DeviceQuerySet

OrderDescByLastSeen is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByMachineID

func (qs DeviceQuerySet) OrderDescByMachineID() DeviceQuerySet

OrderDescByMachineID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByName

func (qs DeviceQuerySet) OrderDescByName() DeviceQuerySet

OrderDescByName is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByOS

func (qs DeviceQuerySet) OrderDescByOS() DeviceQuerySet

OrderDescByOS is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByRelayServerID

func (qs DeviceQuerySet) OrderDescByRelayServerID() DeviceQuerySet

OrderDescByRelayServerID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByUpdatedAt

func (qs DeviceQuerySet) OrderDescByUpdatedAt() DeviceQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByUserID

func (qs DeviceQuerySet) OrderDescByUserID() DeviceQuerySet

OrderDescByUserID is an autogenerated method nolint: dupl

func (DeviceQuerySet) OrderDescByVersion

func (qs DeviceQuerySet) OrderDescByVersion() DeviceQuerySet

OrderDescByVersion is an autogenerated method nolint: dupl

func (DeviceQuerySet) Preload

func (qs DeviceQuerySet) Preload(query string, args ...interface{}) DeviceQuerySet

func (DeviceQuerySet) PreloadUser

func (qs DeviceQuerySet) PreloadUser() DeviceQuerySet

PreloadUser is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDEq

func (qs DeviceQuerySet) RelayServerIDEq(relayServerID ID) DeviceQuerySet

RelayServerIDEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDGt

func (qs DeviceQuerySet) RelayServerIDGt(relayServerID ID) DeviceQuerySet

RelayServerIDGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDGte

func (qs DeviceQuerySet) RelayServerIDGte(relayServerID ID) DeviceQuerySet

RelayServerIDGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDIn

func (qs DeviceQuerySet) RelayServerIDIn(relayServerID ...ID) DeviceQuerySet

RelayServerIDIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDLt

func (qs DeviceQuerySet) RelayServerIDLt(relayServerID ID) DeviceQuerySet

RelayServerIDLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDLte

func (qs DeviceQuerySet) RelayServerIDLte(relayServerID ID) DeviceQuerySet

RelayServerIDLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDNe

func (qs DeviceQuerySet) RelayServerIDNe(relayServerID ID) DeviceQuerySet

RelayServerIDNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) RelayServerIDNotIn

func (qs DeviceQuerySet) RelayServerIDNotIn(relayServerID ...ID) DeviceQuerySet

RelayServerIDNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) Select

func (qs DeviceQuerySet) Select(fields ...DeviceDBSchemaField) DeviceQuerySet

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (DeviceQuerySet) UpdatedAtEq

func (qs DeviceQuerySet) UpdatedAtEq(updatedAt time.Time) DeviceQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) UpdatedAtGt

func (qs DeviceQuerySet) UpdatedAtGt(updatedAt time.Time) DeviceQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) UpdatedAtGte

func (qs DeviceQuerySet) UpdatedAtGte(updatedAt time.Time) DeviceQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) UpdatedAtIsNotNull

func (qs DeviceQuerySet) UpdatedAtIsNotNull() DeviceQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (DeviceQuerySet) UpdatedAtIsNull

func (qs DeviceQuerySet) UpdatedAtIsNull() DeviceQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (DeviceQuerySet) UpdatedAtLt

func (qs DeviceQuerySet) UpdatedAtLt(updatedAt time.Time) DeviceQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) UpdatedAtLte

func (qs DeviceQuerySet) UpdatedAtLte(updatedAt time.Time) DeviceQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) UpdatedAtNe

func (qs DeviceQuerySet) UpdatedAtNe(updatedAt time.Time) DeviceQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDEq

func (qs DeviceQuerySet) UserIDEq(userID ID) DeviceQuerySet

UserIDEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDGt

func (qs DeviceQuerySet) UserIDGt(userID ID) DeviceQuerySet

UserIDGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDGte

func (qs DeviceQuerySet) UserIDGte(userID ID) DeviceQuerySet

UserIDGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDIn

func (qs DeviceQuerySet) UserIDIn(userID ...ID) DeviceQuerySet

UserIDIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDLt

func (qs DeviceQuerySet) UserIDLt(userID ID) DeviceQuerySet

UserIDLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDLte

func (qs DeviceQuerySet) UserIDLte(userID ID) DeviceQuerySet

UserIDLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDNe

func (qs DeviceQuerySet) UserIDNe(userID ID) DeviceQuerySet

UserIDNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIDNotIn

func (qs DeviceQuerySet) UserIDNotIn(userID ...ID) DeviceQuerySet

UserIDNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIsNotNull

func (qs DeviceQuerySet) UserIsNotNull() DeviceQuerySet

UserIsNotNull is an autogenerated method nolint: dupl

func (DeviceQuerySet) UserIsNull

func (qs DeviceQuerySet) UserIsNull() DeviceQuerySet

UserIsNull is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionEq

func (qs DeviceQuerySet) VersionEq(version string) DeviceQuerySet

VersionEq is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionGt

func (qs DeviceQuerySet) VersionGt(version string) DeviceQuerySet

VersionGt is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionGte

func (qs DeviceQuerySet) VersionGte(version string) DeviceQuerySet

VersionGte is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionIn

func (qs DeviceQuerySet) VersionIn(version ...string) DeviceQuerySet

VersionIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionLike

func (qs DeviceQuerySet) VersionLike(version string) DeviceQuerySet

VersionLike is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionLt

func (qs DeviceQuerySet) VersionLt(version string) DeviceQuerySet

VersionLt is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionLte

func (qs DeviceQuerySet) VersionLte(version string) DeviceQuerySet

VersionLte is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionNe

func (qs DeviceQuerySet) VersionNe(version string) DeviceQuerySet

VersionNe is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionNotIn

func (qs DeviceQuerySet) VersionNotIn(version ...string) DeviceQuerySet

VersionNotIn is an autogenerated method nolint: dupl

func (DeviceQuerySet) VersionNotlike

func (qs DeviceQuerySet) VersionNotlike(version string) DeviceQuerySet

VersionNotlike is an autogenerated method nolint: dupl

type DeviceStatusType

type DeviceStatusType string
const (
	DeviceStatusTypeOnline  DeviceStatusType = "online"
	DeviceStatusTypeOffline DeviceStatusType = "offline"
)

func (DeviceStatusType) String

func (d DeviceStatusType) String() string

String implements the fmt.Stringer interface

type DeviceUpdater

type DeviceUpdater struct {
	// contains filtered or unexported fields
}

DeviceUpdater is an Device updates manager

func NewDeviceUpdater

func NewDeviceUpdater(db *gorm.DB) DeviceUpdater

NewDeviceUpdater creates new Device updater nolint: dupl

func (DeviceUpdater) SetAddress

func (u DeviceUpdater) SetAddress(address string) DeviceUpdater

SetAddress is an autogenerated method nolint: dupl

func (DeviceUpdater) SetCreatedAt

func (u DeviceUpdater) SetCreatedAt(createdAt time.Time) DeviceUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (DeviceUpdater) SetDeletedAt

func (u DeviceUpdater) SetDeletedAt(deletedAt *time.Time) DeviceUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (DeviceUpdater) SetID

func (u DeviceUpdater) SetID(ID ID) DeviceUpdater

SetID is an autogenerated method nolint: dupl

func (DeviceUpdater) SetLastSeen

func (u DeviceUpdater) SetLastSeen(lastSeen time.Time) DeviceUpdater

SetLastSeen is an autogenerated method nolint: dupl

func (DeviceUpdater) SetMachineID

func (u DeviceUpdater) SetMachineID(machineID string) DeviceUpdater

SetMachineID is an autogenerated method nolint: dupl

func (DeviceUpdater) SetName

func (u DeviceUpdater) SetName(name string) DeviceUpdater

SetName is an autogenerated method nolint: dupl

func (DeviceUpdater) SetOS

func (u DeviceUpdater) SetOS(oS string) DeviceUpdater

SetOS is an autogenerated method nolint: dupl

func (DeviceUpdater) SetRelayServerID

func (u DeviceUpdater) SetRelayServerID(relayServerID ID) DeviceUpdater

SetRelayServerID is an autogenerated method nolint: dupl

func (DeviceUpdater) SetUpdatedAt

func (u DeviceUpdater) SetUpdatedAt(updatedAt *time.Time) DeviceUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (DeviceUpdater) SetUserID

func (u DeviceUpdater) SetUserID(userID ID) DeviceUpdater

SetUserID is an autogenerated method nolint: dupl

func (DeviceUpdater) SetVersion

func (u DeviceUpdater) SetVersion(version string) DeviceUpdater

SetVersion is an autogenerated method nolint: dupl

func (DeviceUpdater) Update

func (u DeviceUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (DeviceUpdater) UpdateNum

func (u DeviceUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type GithubUser

type GithubUser struct {
	Deletable

	UserID    ID     `gorm:"not null;unique"`
	User      *User  `gorm:"foreignkey:UserID"`
	GithubID  ID     `gorm:"not null;unique"`
	Login     string `gorm:"type:varchar(128);not null;unique"`
	AvatarURL string `gorm:"type:varchar(512)"`
	Location  string `gorm:"type:varchar(128)"`
}

GithubUser represents the github_user table in database

func (*GithubUser) Create

func (o *GithubUser) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*GithubUser) Delete

func (o *GithubUser) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*GithubUser) Update

func (o *GithubUser) Update(db *gorm.DB, fields ...GithubUserDBSchemaField) error

Update updates GithubUser fields by primary key nolint: dupl

type GithubUserDBSchemaField

type GithubUserDBSchemaField string

GithubUserDBSchemaField describes database schema field. It requires for method 'Update'

func (GithubUserDBSchemaField) String

func (f GithubUserDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type GithubUserQuerySet

type GithubUserQuerySet struct {
	// contains filtered or unexported fields
}

GithubUserQuerySet is an queryset type for GithubUser

func NewGithubUserQuerySet

func NewGithubUserQuerySet(db *gorm.DB) GithubUserQuerySet

NewGithubUserQuerySet constructs new GithubUserQuerySet

func (GithubUserQuerySet) All

func (qs GithubUserQuerySet) All(ret *[]GithubUser) error

All is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLEq

func (qs GithubUserQuerySet) AvatarURLEq(avatarURL string) GithubUserQuerySet

AvatarURLEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLGt

func (qs GithubUserQuerySet) AvatarURLGt(avatarURL string) GithubUserQuerySet

AvatarURLGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLGte

func (qs GithubUserQuerySet) AvatarURLGte(avatarURL string) GithubUserQuerySet

AvatarURLGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLIn

func (qs GithubUserQuerySet) AvatarURLIn(avatarURL ...string) GithubUserQuerySet

AvatarURLIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLLike

func (qs GithubUserQuerySet) AvatarURLLike(avatarURL string) GithubUserQuerySet

AvatarURLLike is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLLt

func (qs GithubUserQuerySet) AvatarURLLt(avatarURL string) GithubUserQuerySet

AvatarURLLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLLte

func (qs GithubUserQuerySet) AvatarURLLte(avatarURL string) GithubUserQuerySet

AvatarURLLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLNe

func (qs GithubUserQuerySet) AvatarURLNe(avatarURL string) GithubUserQuerySet

AvatarURLNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLNotIn

func (qs GithubUserQuerySet) AvatarURLNotIn(avatarURL ...string) GithubUserQuerySet

AvatarURLNotIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) AvatarURLNotlike

func (qs GithubUserQuerySet) AvatarURLNotlike(avatarURL string) GithubUserQuerySet

AvatarURLNotlike is an autogenerated method nolint: dupl

func (GithubUserQuerySet) Count

func (qs GithubUserQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (GithubUserQuerySet) CreatedAtEq

func (qs GithubUserQuerySet) CreatedAtEq(createdAt time.Time) GithubUserQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) CreatedAtGt

func (qs GithubUserQuerySet) CreatedAtGt(createdAt time.Time) GithubUserQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) CreatedAtGte

func (qs GithubUserQuerySet) CreatedAtGte(createdAt time.Time) GithubUserQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) CreatedAtLt

func (qs GithubUserQuerySet) CreatedAtLt(createdAt time.Time) GithubUserQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) CreatedAtLte

func (qs GithubUserQuerySet) CreatedAtLte(createdAt time.Time) GithubUserQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) CreatedAtNe

func (qs GithubUserQuerySet) CreatedAtNe(createdAt time.Time) GithubUserQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) Delete

func (qs GithubUserQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeleteNum

func (qs GithubUserQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeleteNumUnscoped

func (qs GithubUserQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtEq

func (qs GithubUserQuerySet) DeletedAtEq(deletedAt time.Time) GithubUserQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtGt

func (qs GithubUserQuerySet) DeletedAtGt(deletedAt time.Time) GithubUserQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtGte

func (qs GithubUserQuerySet) DeletedAtGte(deletedAt time.Time) GithubUserQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtIsNotNull

func (qs GithubUserQuerySet) DeletedAtIsNotNull() GithubUserQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtIsNull

func (qs GithubUserQuerySet) DeletedAtIsNull() GithubUserQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtLt

func (qs GithubUserQuerySet) DeletedAtLt(deletedAt time.Time) GithubUserQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtLte

func (qs GithubUserQuerySet) DeletedAtLte(deletedAt time.Time) GithubUserQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) DeletedAtNe

func (qs GithubUserQuerySet) DeletedAtNe(deletedAt time.Time) GithubUserQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GetDB

func (qs GithubUserQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GetUpdater

func (qs GithubUserQuerySet) GetUpdater() GithubUserUpdater

GetUpdater is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDEq

func (qs GithubUserQuerySet) GithubIDEq(githubID ID) GithubUserQuerySet

GithubIDEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDGt

func (qs GithubUserQuerySet) GithubIDGt(githubID ID) GithubUserQuerySet

GithubIDGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDGte

func (qs GithubUserQuerySet) GithubIDGte(githubID ID) GithubUserQuerySet

GithubIDGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDIn

func (qs GithubUserQuerySet) GithubIDIn(githubID ...ID) GithubUserQuerySet

GithubIDIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDLt

func (qs GithubUserQuerySet) GithubIDLt(githubID ID) GithubUserQuerySet

GithubIDLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDLte

func (qs GithubUserQuerySet) GithubIDLte(githubID ID) GithubUserQuerySet

GithubIDLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDNe

func (qs GithubUserQuerySet) GithubIDNe(githubID ID) GithubUserQuerySet

GithubIDNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) GithubIDNotIn

func (qs GithubUserQuerySet) GithubIDNotIn(githubID ...ID) GithubUserQuerySet

GithubIDNotIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDEq

IDEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDGt

IDGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDGte

IDGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDIn

func (qs GithubUserQuerySet) IDIn(ID ...ID) GithubUserQuerySet

IDIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDLt

IDLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDLte

IDLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDNe

IDNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) IDNotIn

func (qs GithubUserQuerySet) IDNotIn(ID ...ID) GithubUserQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) Limit

func (qs GithubUserQuerySet) Limit(limit int) GithubUserQuerySet

Limit is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationEq

func (qs GithubUserQuerySet) LocationEq(location string) GithubUserQuerySet

LocationEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationGt

func (qs GithubUserQuerySet) LocationGt(location string) GithubUserQuerySet

LocationGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationGte

func (qs GithubUserQuerySet) LocationGte(location string) GithubUserQuerySet

LocationGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationIn

func (qs GithubUserQuerySet) LocationIn(location ...string) GithubUserQuerySet

LocationIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationLike

func (qs GithubUserQuerySet) LocationLike(location string) GithubUserQuerySet

LocationLike is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationLt

func (qs GithubUserQuerySet) LocationLt(location string) GithubUserQuerySet

LocationLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationLte

func (qs GithubUserQuerySet) LocationLte(location string) GithubUserQuerySet

LocationLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationNe

func (qs GithubUserQuerySet) LocationNe(location string) GithubUserQuerySet

LocationNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationNotIn

func (qs GithubUserQuerySet) LocationNotIn(location ...string) GithubUserQuerySet

LocationNotIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LocationNotlike

func (qs GithubUserQuerySet) LocationNotlike(location string) GithubUserQuerySet

LocationNotlike is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginEq

func (qs GithubUserQuerySet) LoginEq(login string) GithubUserQuerySet

LoginEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginGt

func (qs GithubUserQuerySet) LoginGt(login string) GithubUserQuerySet

LoginGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginGte

func (qs GithubUserQuerySet) LoginGte(login string) GithubUserQuerySet

LoginGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginIn

func (qs GithubUserQuerySet) LoginIn(login ...string) GithubUserQuerySet

LoginIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginLike

func (qs GithubUserQuerySet) LoginLike(login string) GithubUserQuerySet

LoginLike is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginLt

func (qs GithubUserQuerySet) LoginLt(login string) GithubUserQuerySet

LoginLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginLte

func (qs GithubUserQuerySet) LoginLte(login string) GithubUserQuerySet

LoginLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginNe

func (qs GithubUserQuerySet) LoginNe(login string) GithubUserQuerySet

LoginNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginNotIn

func (qs GithubUserQuerySet) LoginNotIn(login ...string) GithubUserQuerySet

LoginNotIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) LoginNotlike

func (qs GithubUserQuerySet) LoginNotlike(login string) GithubUserQuerySet

LoginNotlike is an autogenerated method nolint: dupl

func (GithubUserQuerySet) Offset

func (qs GithubUserQuerySet) Offset(offset int) GithubUserQuerySet

Offset is an autogenerated method nolint: dupl

func (GithubUserQuerySet) One

func (qs GithubUserQuerySet) One(ret *GithubUser) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (GithubUserQuerySet) OrderAscByAvatarURL

func (qs GithubUserQuerySet) OrderAscByAvatarURL() GithubUserQuerySet

OrderAscByAvatarURL is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByCreatedAt

func (qs GithubUserQuerySet) OrderAscByCreatedAt() GithubUserQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByDeletedAt

func (qs GithubUserQuerySet) OrderAscByDeletedAt() GithubUserQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByGithubID

func (qs GithubUserQuerySet) OrderAscByGithubID() GithubUserQuerySet

OrderAscByGithubID is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByID

func (qs GithubUserQuerySet) OrderAscByID() GithubUserQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByLocation

func (qs GithubUserQuerySet) OrderAscByLocation() GithubUserQuerySet

OrderAscByLocation is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByLogin

func (qs GithubUserQuerySet) OrderAscByLogin() GithubUserQuerySet

OrderAscByLogin is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByUpdatedAt

func (qs GithubUserQuerySet) OrderAscByUpdatedAt() GithubUserQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderAscByUserID

func (qs GithubUserQuerySet) OrderAscByUserID() GithubUserQuerySet

OrderAscByUserID is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByAvatarURL

func (qs GithubUserQuerySet) OrderDescByAvatarURL() GithubUserQuerySet

OrderDescByAvatarURL is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByCreatedAt

func (qs GithubUserQuerySet) OrderDescByCreatedAt() GithubUserQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByDeletedAt

func (qs GithubUserQuerySet) OrderDescByDeletedAt() GithubUserQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByGithubID

func (qs GithubUserQuerySet) OrderDescByGithubID() GithubUserQuerySet

OrderDescByGithubID is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByID

func (qs GithubUserQuerySet) OrderDescByID() GithubUserQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByLocation

func (qs GithubUserQuerySet) OrderDescByLocation() GithubUserQuerySet

OrderDescByLocation is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByLogin

func (qs GithubUserQuerySet) OrderDescByLogin() GithubUserQuerySet

OrderDescByLogin is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByUpdatedAt

func (qs GithubUserQuerySet) OrderDescByUpdatedAt() GithubUserQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) OrderDescByUserID

func (qs GithubUserQuerySet) OrderDescByUserID() GithubUserQuerySet

OrderDescByUserID is an autogenerated method nolint: dupl

func (GithubUserQuerySet) Preload

func (qs GithubUserQuerySet) Preload(query string, args ...interface{}) GithubUserQuerySet

func (GithubUserQuerySet) PreloadUser

func (qs GithubUserQuerySet) PreloadUser() GithubUserQuerySet

PreloadUser is an autogenerated method nolint: dupl

func (GithubUserQuerySet) Select

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (GithubUserQuerySet) UpdatedAtEq

func (qs GithubUserQuerySet) UpdatedAtEq(updatedAt time.Time) GithubUserQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UpdatedAtGt

func (qs GithubUserQuerySet) UpdatedAtGt(updatedAt time.Time) GithubUserQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UpdatedAtGte

func (qs GithubUserQuerySet) UpdatedAtGte(updatedAt time.Time) GithubUserQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UpdatedAtIsNotNull

func (qs GithubUserQuerySet) UpdatedAtIsNotNull() GithubUserQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UpdatedAtIsNull

func (qs GithubUserQuerySet) UpdatedAtIsNull() GithubUserQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UpdatedAtLt

func (qs GithubUserQuerySet) UpdatedAtLt(updatedAt time.Time) GithubUserQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UpdatedAtLte

func (qs GithubUserQuerySet) UpdatedAtLte(updatedAt time.Time) GithubUserQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UpdatedAtNe

func (qs GithubUserQuerySet) UpdatedAtNe(updatedAt time.Time) GithubUserQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDEq

func (qs GithubUserQuerySet) UserIDEq(userID ID) GithubUserQuerySet

UserIDEq is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDGt

func (qs GithubUserQuerySet) UserIDGt(userID ID) GithubUserQuerySet

UserIDGt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDGte

func (qs GithubUserQuerySet) UserIDGte(userID ID) GithubUserQuerySet

UserIDGte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDIn

func (qs GithubUserQuerySet) UserIDIn(userID ...ID) GithubUserQuerySet

UserIDIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDLt

func (qs GithubUserQuerySet) UserIDLt(userID ID) GithubUserQuerySet

UserIDLt is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDLte

func (qs GithubUserQuerySet) UserIDLte(userID ID) GithubUserQuerySet

UserIDLte is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDNe

func (qs GithubUserQuerySet) UserIDNe(userID ID) GithubUserQuerySet

UserIDNe is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIDNotIn

func (qs GithubUserQuerySet) UserIDNotIn(userID ...ID) GithubUserQuerySet

UserIDNotIn is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIsNotNull

func (qs GithubUserQuerySet) UserIsNotNull() GithubUserQuerySet

UserIsNotNull is an autogenerated method nolint: dupl

func (GithubUserQuerySet) UserIsNull

func (qs GithubUserQuerySet) UserIsNull() GithubUserQuerySet

UserIsNull is an autogenerated method nolint: dupl

type GithubUserUpdater

type GithubUserUpdater struct {
	// contains filtered or unexported fields
}

GithubUserUpdater is an GithubUser updates manager

func NewGithubUserUpdater

func NewGithubUserUpdater(db *gorm.DB) GithubUserUpdater

NewGithubUserUpdater creates new GithubUser updater nolint: dupl

func (GithubUserUpdater) SetAvatarURL

func (u GithubUserUpdater) SetAvatarURL(avatarURL string) GithubUserUpdater

SetAvatarURL is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetCreatedAt

func (u GithubUserUpdater) SetCreatedAt(createdAt time.Time) GithubUserUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetDeletedAt

func (u GithubUserUpdater) SetDeletedAt(deletedAt *time.Time) GithubUserUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetGithubID

func (u GithubUserUpdater) SetGithubID(githubID ID) GithubUserUpdater

SetGithubID is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetID

SetID is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetLocation

func (u GithubUserUpdater) SetLocation(location string) GithubUserUpdater

SetLocation is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetLogin

func (u GithubUserUpdater) SetLogin(login string) GithubUserUpdater

SetLogin is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetUpdatedAt

func (u GithubUserUpdater) SetUpdatedAt(updatedAt *time.Time) GithubUserUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (GithubUserUpdater) SetUserID

func (u GithubUserUpdater) SetUserID(userID ID) GithubUserUpdater

SetUserID is an autogenerated method nolint: dupl

func (GithubUserUpdater) Update

func (u GithubUserUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (GithubUserUpdater) UpdateNum

func (u GithubUserUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type ID

type ID uint64

ID represents all Identity

type Invitation

type Invitation struct {
	Deletable

	NetworkID   ID       `gorm:"not null"`
	Network     *Network `gorm:"foreignkey:NetworkID"`
	InvitedByID ID       `gorm:"not null"`
	InvitedBy   *User    `gorm:"foreignkey:InvitedByID"`
	UserID      ID       `gorm:"not null"`
	User        *User    `gorm:"foreignkey:UserID"`
	Role        RoleType `gorm:"type:enum('admin', 'member');default:'member'"`
}

Invitation represents the invitation request from the team admin/owner

func (*Invitation) Create

func (o *Invitation) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*Invitation) Delete

func (o *Invitation) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*Invitation) Update

func (o *Invitation) Update(db *gorm.DB, fields ...InvitationDBSchemaField) error

Update updates Invitation fields by primary key nolint: dupl

type InvitationDBSchemaField

type InvitationDBSchemaField string

InvitationDBSchemaField describes database schema field. It requires for method 'Update'

func (InvitationDBSchemaField) String

func (f InvitationDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type InvitationQuerySet

type InvitationQuerySet struct {
	// contains filtered or unexported fields
}

InvitationQuerySet is an queryset type for Invitation

func NewInvitationQuerySet

func NewInvitationQuerySet(db *gorm.DB) InvitationQuerySet

NewInvitationQuerySet constructs new InvitationQuerySet

func (InvitationQuerySet) All

func (qs InvitationQuerySet) All(ret *[]Invitation) error

All is an autogenerated method nolint: dupl

func (InvitationQuerySet) Count

func (qs InvitationQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (InvitationQuerySet) CreatedAtEq

func (qs InvitationQuerySet) CreatedAtEq(createdAt time.Time) InvitationQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) CreatedAtGt

func (qs InvitationQuerySet) CreatedAtGt(createdAt time.Time) InvitationQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) CreatedAtGte

func (qs InvitationQuerySet) CreatedAtGte(createdAt time.Time) InvitationQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) CreatedAtLt

func (qs InvitationQuerySet) CreatedAtLt(createdAt time.Time) InvitationQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) CreatedAtLte

func (qs InvitationQuerySet) CreatedAtLte(createdAt time.Time) InvitationQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) CreatedAtNe

func (qs InvitationQuerySet) CreatedAtNe(createdAt time.Time) InvitationQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) Delete

func (qs InvitationQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeleteNum

func (qs InvitationQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeleteNumUnscoped

func (qs InvitationQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtEq

func (qs InvitationQuerySet) DeletedAtEq(deletedAt time.Time) InvitationQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtGt

func (qs InvitationQuerySet) DeletedAtGt(deletedAt time.Time) InvitationQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtGte

func (qs InvitationQuerySet) DeletedAtGte(deletedAt time.Time) InvitationQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtIsNotNull

func (qs InvitationQuerySet) DeletedAtIsNotNull() InvitationQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtIsNull

func (qs InvitationQuerySet) DeletedAtIsNull() InvitationQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtLt

func (qs InvitationQuerySet) DeletedAtLt(deletedAt time.Time) InvitationQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtLte

func (qs InvitationQuerySet) DeletedAtLte(deletedAt time.Time) InvitationQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) DeletedAtNe

func (qs InvitationQuerySet) DeletedAtNe(deletedAt time.Time) InvitationQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) GetDB

func (qs InvitationQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (InvitationQuerySet) GetUpdater

func (qs InvitationQuerySet) GetUpdater() InvitationUpdater

GetUpdater is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDEq

IDEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDGt

IDGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDGte

IDGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDIn

func (qs InvitationQuerySet) IDIn(ID ...ID) InvitationQuerySet

IDIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDLt

IDLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDLte

IDLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDNe

IDNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) IDNotIn

func (qs InvitationQuerySet) IDNotIn(ID ...ID) InvitationQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDEq

func (qs InvitationQuerySet) InvitedByIDEq(invitedByID ID) InvitationQuerySet

InvitedByIDEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDGt

func (qs InvitationQuerySet) InvitedByIDGt(invitedByID ID) InvitationQuerySet

InvitedByIDGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDGte

func (qs InvitationQuerySet) InvitedByIDGte(invitedByID ID) InvitationQuerySet

InvitedByIDGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDIn

func (qs InvitationQuerySet) InvitedByIDIn(invitedByID ...ID) InvitationQuerySet

InvitedByIDIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDLt

func (qs InvitationQuerySet) InvitedByIDLt(invitedByID ID) InvitationQuerySet

InvitedByIDLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDLte

func (qs InvitationQuerySet) InvitedByIDLte(invitedByID ID) InvitationQuerySet

InvitedByIDLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDNe

func (qs InvitationQuerySet) InvitedByIDNe(invitedByID ID) InvitationQuerySet

InvitedByIDNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIDNotIn

func (qs InvitationQuerySet) InvitedByIDNotIn(invitedByID ...ID) InvitationQuerySet

InvitedByIDNotIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIsNotNull

func (qs InvitationQuerySet) InvitedByIsNotNull() InvitationQuerySet

InvitedByIsNotNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) InvitedByIsNull

func (qs InvitationQuerySet) InvitedByIsNull() InvitationQuerySet

InvitedByIsNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) Limit

func (qs InvitationQuerySet) Limit(limit int) InvitationQuerySet

Limit is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDEq

func (qs InvitationQuerySet) NetworkIDEq(networkID ID) InvitationQuerySet

NetworkIDEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDGt

func (qs InvitationQuerySet) NetworkIDGt(networkID ID) InvitationQuerySet

NetworkIDGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDGte

func (qs InvitationQuerySet) NetworkIDGte(networkID ID) InvitationQuerySet

NetworkIDGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDIn

func (qs InvitationQuerySet) NetworkIDIn(networkID ...ID) InvitationQuerySet

NetworkIDIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDLt

func (qs InvitationQuerySet) NetworkIDLt(networkID ID) InvitationQuerySet

NetworkIDLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDLte

func (qs InvitationQuerySet) NetworkIDLte(networkID ID) InvitationQuerySet

NetworkIDLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDNe

func (qs InvitationQuerySet) NetworkIDNe(networkID ID) InvitationQuerySet

NetworkIDNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIDNotIn

func (qs InvitationQuerySet) NetworkIDNotIn(networkID ...ID) InvitationQuerySet

NetworkIDNotIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIsNotNull

func (qs InvitationQuerySet) NetworkIsNotNull() InvitationQuerySet

NetworkIsNotNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) NetworkIsNull

func (qs InvitationQuerySet) NetworkIsNull() InvitationQuerySet

NetworkIsNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) Offset

func (qs InvitationQuerySet) Offset(offset int) InvitationQuerySet

Offset is an autogenerated method nolint: dupl

func (InvitationQuerySet) One

func (qs InvitationQuerySet) One(ret *Invitation) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (InvitationQuerySet) OrderAscByCreatedAt

func (qs InvitationQuerySet) OrderAscByCreatedAt() InvitationQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderAscByDeletedAt

func (qs InvitationQuerySet) OrderAscByDeletedAt() InvitationQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderAscByID

func (qs InvitationQuerySet) OrderAscByID() InvitationQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderAscByInvitedByID

func (qs InvitationQuerySet) OrderAscByInvitedByID() InvitationQuerySet

OrderAscByInvitedByID is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderAscByNetworkID

func (qs InvitationQuerySet) OrderAscByNetworkID() InvitationQuerySet

OrderAscByNetworkID is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderAscByRole

func (qs InvitationQuerySet) OrderAscByRole() InvitationQuerySet

OrderAscByRole is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderAscByUpdatedAt

func (qs InvitationQuerySet) OrderAscByUpdatedAt() InvitationQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderAscByUserID

func (qs InvitationQuerySet) OrderAscByUserID() InvitationQuerySet

OrderAscByUserID is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByCreatedAt

func (qs InvitationQuerySet) OrderDescByCreatedAt() InvitationQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByDeletedAt

func (qs InvitationQuerySet) OrderDescByDeletedAt() InvitationQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByID

func (qs InvitationQuerySet) OrderDescByID() InvitationQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByInvitedByID

func (qs InvitationQuerySet) OrderDescByInvitedByID() InvitationQuerySet

OrderDescByInvitedByID is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByNetworkID

func (qs InvitationQuerySet) OrderDescByNetworkID() InvitationQuerySet

OrderDescByNetworkID is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByRole

func (qs InvitationQuerySet) OrderDescByRole() InvitationQuerySet

OrderDescByRole is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByUpdatedAt

func (qs InvitationQuerySet) OrderDescByUpdatedAt() InvitationQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (InvitationQuerySet) OrderDescByUserID

func (qs InvitationQuerySet) OrderDescByUserID() InvitationQuerySet

OrderDescByUserID is an autogenerated method nolint: dupl

func (InvitationQuerySet) Preload

func (qs InvitationQuerySet) Preload(query string, args ...interface{}) InvitationQuerySet

func (InvitationQuerySet) PreloadInvitedBy

func (qs InvitationQuerySet) PreloadInvitedBy() InvitationQuerySet

PreloadInvitedBy is an autogenerated method nolint: dupl

func (InvitationQuerySet) PreloadNetwork

func (qs InvitationQuerySet) PreloadNetwork() InvitationQuerySet

PreloadNetwork is an autogenerated method nolint: dupl

func (InvitationQuerySet) PreloadUser

func (qs InvitationQuerySet) PreloadUser() InvitationQuerySet

PreloadUser is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleEq

RoleEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleGt

RoleGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleGte

RoleGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleIn

func (qs InvitationQuerySet) RoleIn(role ...RoleType) InvitationQuerySet

RoleIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleLike

RoleLike is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleLt

RoleLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleLte

RoleLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleNe

RoleNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleNotIn

func (qs InvitationQuerySet) RoleNotIn(role ...RoleType) InvitationQuerySet

RoleNotIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) RoleNotlike

func (qs InvitationQuerySet) RoleNotlike(role RoleType) InvitationQuerySet

RoleNotlike is an autogenerated method nolint: dupl

func (InvitationQuerySet) Select

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (InvitationQuerySet) UpdatedAtEq

func (qs InvitationQuerySet) UpdatedAtEq(updatedAt time.Time) InvitationQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) UpdatedAtGt

func (qs InvitationQuerySet) UpdatedAtGt(updatedAt time.Time) InvitationQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) UpdatedAtGte

func (qs InvitationQuerySet) UpdatedAtGte(updatedAt time.Time) InvitationQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) UpdatedAtIsNotNull

func (qs InvitationQuerySet) UpdatedAtIsNotNull() InvitationQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) UpdatedAtIsNull

func (qs InvitationQuerySet) UpdatedAtIsNull() InvitationQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) UpdatedAtLt

func (qs InvitationQuerySet) UpdatedAtLt(updatedAt time.Time) InvitationQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) UpdatedAtLte

func (qs InvitationQuerySet) UpdatedAtLte(updatedAt time.Time) InvitationQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) UpdatedAtNe

func (qs InvitationQuerySet) UpdatedAtNe(updatedAt time.Time) InvitationQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDEq

func (qs InvitationQuerySet) UserIDEq(userID ID) InvitationQuerySet

UserIDEq is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDGt

func (qs InvitationQuerySet) UserIDGt(userID ID) InvitationQuerySet

UserIDGt is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDGte

func (qs InvitationQuerySet) UserIDGte(userID ID) InvitationQuerySet

UserIDGte is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDIn

func (qs InvitationQuerySet) UserIDIn(userID ...ID) InvitationQuerySet

UserIDIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDLt

func (qs InvitationQuerySet) UserIDLt(userID ID) InvitationQuerySet

UserIDLt is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDLte

func (qs InvitationQuerySet) UserIDLte(userID ID) InvitationQuerySet

UserIDLte is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDNe

func (qs InvitationQuerySet) UserIDNe(userID ID) InvitationQuerySet

UserIDNe is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIDNotIn

func (qs InvitationQuerySet) UserIDNotIn(userID ...ID) InvitationQuerySet

UserIDNotIn is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIsNotNull

func (qs InvitationQuerySet) UserIsNotNull() InvitationQuerySet

UserIsNotNull is an autogenerated method nolint: dupl

func (InvitationQuerySet) UserIsNull

func (qs InvitationQuerySet) UserIsNull() InvitationQuerySet

UserIsNull is an autogenerated method nolint: dupl

type InvitationUpdater

type InvitationUpdater struct {
	// contains filtered or unexported fields
}

InvitationUpdater is an Invitation updates manager

func NewInvitationUpdater

func NewInvitationUpdater(db *gorm.DB) InvitationUpdater

NewInvitationUpdater creates new Invitation updater nolint: dupl

func (InvitationUpdater) SetCreatedAt

func (u InvitationUpdater) SetCreatedAt(createdAt time.Time) InvitationUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (InvitationUpdater) SetDeletedAt

func (u InvitationUpdater) SetDeletedAt(deletedAt *time.Time) InvitationUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (InvitationUpdater) SetID

SetID is an autogenerated method nolint: dupl

func (InvitationUpdater) SetInvitedByID

func (u InvitationUpdater) SetInvitedByID(invitedByID ID) InvitationUpdater

SetInvitedByID is an autogenerated method nolint: dupl

func (InvitationUpdater) SetNetworkID

func (u InvitationUpdater) SetNetworkID(networkID ID) InvitationUpdater

SetNetworkID is an autogenerated method nolint: dupl

func (InvitationUpdater) SetRole

SetRole is an autogenerated method nolint: dupl

func (InvitationUpdater) SetUpdatedAt

func (u InvitationUpdater) SetUpdatedAt(updatedAt *time.Time) InvitationUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (InvitationUpdater) SetUserID

func (u InvitationUpdater) SetUserID(userID ID) InvitationUpdater

SetUserID is an autogenerated method nolint: dupl

func (InvitationUpdater) Update

func (u InvitationUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (InvitationUpdater) UpdateNum

func (u InvitationUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type KeyType

type KeyType string
const (
	KeyTypeOneOff    KeyType = "one-off"
	KeyTypeReusable  KeyType = "reusable"
	KeyTypeEphemeral KeyType = "ephemeral"
)

func (KeyType) String

func (k KeyType) String() string

String implements the fmt.Stringer interface

type Network

type Network struct {
	Deletable

	// The network is owned by the creator of network.
	CreatedByID ID     `gorm:"not null"`
	CreatedBy   *User  `gorm:"foreignkey:CreatedByID"`
	Name        string `gorm:"type:varchar(64);not null"`
	Description string `gorm:"type:varchar(256);not null"`
}

Network represents a network

func (*Network) Create

func (o *Network) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*Network) Delete

func (o *Network) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*Network) Update

func (o *Network) Update(db *gorm.DB, fields ...NetworkDBSchemaField) error

Update updates Network fields by primary key nolint: dupl

type NetworkDBSchemaField

type NetworkDBSchemaField string

NetworkDBSchemaField describes database schema field. It requires for method 'Update'

func (NetworkDBSchemaField) String

func (f NetworkDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type NetworkQuerySet

type NetworkQuerySet struct {
	// contains filtered or unexported fields
}

NetworkQuerySet is an queryset type for Network

func NewNetworkQuerySet

func NewNetworkQuerySet(db *gorm.DB) NetworkQuerySet

NewNetworkQuerySet constructs new NetworkQuerySet

func (NetworkQuerySet) All

func (qs NetworkQuerySet) All(ret *[]Network) error

All is an autogenerated method nolint: dupl

func (NetworkQuerySet) Count

func (qs NetworkQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedAtEq

func (qs NetworkQuerySet) CreatedAtEq(createdAt time.Time) NetworkQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedAtGt

func (qs NetworkQuerySet) CreatedAtGt(createdAt time.Time) NetworkQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedAtGte

func (qs NetworkQuerySet) CreatedAtGte(createdAt time.Time) NetworkQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedAtLt

func (qs NetworkQuerySet) CreatedAtLt(createdAt time.Time) NetworkQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedAtLte

func (qs NetworkQuerySet) CreatedAtLte(createdAt time.Time) NetworkQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedAtNe

func (qs NetworkQuerySet) CreatedAtNe(createdAt time.Time) NetworkQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDEq

func (qs NetworkQuerySet) CreatedByIDEq(createdByID ID) NetworkQuerySet

CreatedByIDEq is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDGt

func (qs NetworkQuerySet) CreatedByIDGt(createdByID ID) NetworkQuerySet

CreatedByIDGt is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDGte

func (qs NetworkQuerySet) CreatedByIDGte(createdByID ID) NetworkQuerySet

CreatedByIDGte is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDIn

func (qs NetworkQuerySet) CreatedByIDIn(createdByID ...ID) NetworkQuerySet

CreatedByIDIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDLt

func (qs NetworkQuerySet) CreatedByIDLt(createdByID ID) NetworkQuerySet

CreatedByIDLt is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDLte

func (qs NetworkQuerySet) CreatedByIDLte(createdByID ID) NetworkQuerySet

CreatedByIDLte is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDNe

func (qs NetworkQuerySet) CreatedByIDNe(createdByID ID) NetworkQuerySet

CreatedByIDNe is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIDNotIn

func (qs NetworkQuerySet) CreatedByIDNotIn(createdByID ...ID) NetworkQuerySet

CreatedByIDNotIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIsNotNull

func (qs NetworkQuerySet) CreatedByIsNotNull() NetworkQuerySet

CreatedByIsNotNull is an autogenerated method nolint: dupl

func (NetworkQuerySet) CreatedByIsNull

func (qs NetworkQuerySet) CreatedByIsNull() NetworkQuerySet

CreatedByIsNull is an autogenerated method nolint: dupl

func (NetworkQuerySet) Delete

func (qs NetworkQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeleteNum

func (qs NetworkQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeleteNumUnscoped

func (qs NetworkQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtEq

func (qs NetworkQuerySet) DeletedAtEq(deletedAt time.Time) NetworkQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtGt

func (qs NetworkQuerySet) DeletedAtGt(deletedAt time.Time) NetworkQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtGte

func (qs NetworkQuerySet) DeletedAtGte(deletedAt time.Time) NetworkQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtIsNotNull

func (qs NetworkQuerySet) DeletedAtIsNotNull() NetworkQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtIsNull

func (qs NetworkQuerySet) DeletedAtIsNull() NetworkQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtLt

func (qs NetworkQuerySet) DeletedAtLt(deletedAt time.Time) NetworkQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtLte

func (qs NetworkQuerySet) DeletedAtLte(deletedAt time.Time) NetworkQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (NetworkQuerySet) DeletedAtNe

func (qs NetworkQuerySet) DeletedAtNe(deletedAt time.Time) NetworkQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionEq

func (qs NetworkQuerySet) DescriptionEq(description string) NetworkQuerySet

DescriptionEq is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionGt

func (qs NetworkQuerySet) DescriptionGt(description string) NetworkQuerySet

DescriptionGt is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionGte

func (qs NetworkQuerySet) DescriptionGte(description string) NetworkQuerySet

DescriptionGte is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionIn

func (qs NetworkQuerySet) DescriptionIn(description ...string) NetworkQuerySet

DescriptionIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionLike

func (qs NetworkQuerySet) DescriptionLike(description string) NetworkQuerySet

DescriptionLike is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionLt

func (qs NetworkQuerySet) DescriptionLt(description string) NetworkQuerySet

DescriptionLt is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionLte

func (qs NetworkQuerySet) DescriptionLte(description string) NetworkQuerySet

DescriptionLte is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionNe

func (qs NetworkQuerySet) DescriptionNe(description string) NetworkQuerySet

DescriptionNe is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionNotIn

func (qs NetworkQuerySet) DescriptionNotIn(description ...string) NetworkQuerySet

DescriptionNotIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) DescriptionNotlike

func (qs NetworkQuerySet) DescriptionNotlike(description string) NetworkQuerySet

DescriptionNotlike is an autogenerated method nolint: dupl

func (NetworkQuerySet) GetDB

func (qs NetworkQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (NetworkQuerySet) GetUpdater

func (qs NetworkQuerySet) GetUpdater() NetworkUpdater

GetUpdater is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDEq

func (qs NetworkQuerySet) IDEq(ID ID) NetworkQuerySet

IDEq is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDGt

func (qs NetworkQuerySet) IDGt(ID ID) NetworkQuerySet

IDGt is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDGte

func (qs NetworkQuerySet) IDGte(ID ID) NetworkQuerySet

IDGte is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDIn

func (qs NetworkQuerySet) IDIn(ID ...ID) NetworkQuerySet

IDIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDLt

func (qs NetworkQuerySet) IDLt(ID ID) NetworkQuerySet

IDLt is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDLte

func (qs NetworkQuerySet) IDLte(ID ID) NetworkQuerySet

IDLte is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDNe

func (qs NetworkQuerySet) IDNe(ID ID) NetworkQuerySet

IDNe is an autogenerated method nolint: dupl

func (NetworkQuerySet) IDNotIn

func (qs NetworkQuerySet) IDNotIn(ID ...ID) NetworkQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) Limit

func (qs NetworkQuerySet) Limit(limit int) NetworkQuerySet

Limit is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameEq

func (qs NetworkQuerySet) NameEq(name string) NetworkQuerySet

NameEq is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameGt

func (qs NetworkQuerySet) NameGt(name string) NetworkQuerySet

NameGt is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameGte

func (qs NetworkQuerySet) NameGte(name string) NetworkQuerySet

NameGte is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameIn

func (qs NetworkQuerySet) NameIn(name ...string) NetworkQuerySet

NameIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameLike

func (qs NetworkQuerySet) NameLike(name string) NetworkQuerySet

NameLike is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameLt

func (qs NetworkQuerySet) NameLt(name string) NetworkQuerySet

NameLt is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameLte

func (qs NetworkQuerySet) NameLte(name string) NetworkQuerySet

NameLte is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameNe

func (qs NetworkQuerySet) NameNe(name string) NetworkQuerySet

NameNe is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameNotIn

func (qs NetworkQuerySet) NameNotIn(name ...string) NetworkQuerySet

NameNotIn is an autogenerated method nolint: dupl

func (NetworkQuerySet) NameNotlike

func (qs NetworkQuerySet) NameNotlike(name string) NetworkQuerySet

NameNotlike is an autogenerated method nolint: dupl

func (NetworkQuerySet) Offset

func (qs NetworkQuerySet) Offset(offset int) NetworkQuerySet

Offset is an autogenerated method nolint: dupl

func (NetworkQuerySet) One

func (qs NetworkQuerySet) One(ret *Network) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (NetworkQuerySet) OrderAscByCreatedAt

func (qs NetworkQuerySet) OrderAscByCreatedAt() NetworkQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderAscByCreatedByID

func (qs NetworkQuerySet) OrderAscByCreatedByID() NetworkQuerySet

OrderAscByCreatedByID is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderAscByDeletedAt

func (qs NetworkQuerySet) OrderAscByDeletedAt() NetworkQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderAscByDescription

func (qs NetworkQuerySet) OrderAscByDescription() NetworkQuerySet

OrderAscByDescription is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderAscByID

func (qs NetworkQuerySet) OrderAscByID() NetworkQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderAscByName

func (qs NetworkQuerySet) OrderAscByName() NetworkQuerySet

OrderAscByName is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderAscByUpdatedAt

func (qs NetworkQuerySet) OrderAscByUpdatedAt() NetworkQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderDescByCreatedAt

func (qs NetworkQuerySet) OrderDescByCreatedAt() NetworkQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderDescByCreatedByID

func (qs NetworkQuerySet) OrderDescByCreatedByID() NetworkQuerySet

OrderDescByCreatedByID is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderDescByDeletedAt

func (qs NetworkQuerySet) OrderDescByDeletedAt() NetworkQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderDescByDescription

func (qs NetworkQuerySet) OrderDescByDescription() NetworkQuerySet

OrderDescByDescription is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderDescByID

func (qs NetworkQuerySet) OrderDescByID() NetworkQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderDescByName

func (qs NetworkQuerySet) OrderDescByName() NetworkQuerySet

OrderDescByName is an autogenerated method nolint: dupl

func (NetworkQuerySet) OrderDescByUpdatedAt

func (qs NetworkQuerySet) OrderDescByUpdatedAt() NetworkQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (NetworkQuerySet) Preload

func (qs NetworkQuerySet) Preload(query string, args ...interface{}) NetworkQuerySet

func (NetworkQuerySet) PreloadCreatedBy

func (qs NetworkQuerySet) PreloadCreatedBy() NetworkQuerySet

PreloadCreatedBy is an autogenerated method nolint: dupl

func (NetworkQuerySet) Select

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (NetworkQuerySet) UpdatedAtEq

func (qs NetworkQuerySet) UpdatedAtEq(updatedAt time.Time) NetworkQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (NetworkQuerySet) UpdatedAtGt

func (qs NetworkQuerySet) UpdatedAtGt(updatedAt time.Time) NetworkQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (NetworkQuerySet) UpdatedAtGte

func (qs NetworkQuerySet) UpdatedAtGte(updatedAt time.Time) NetworkQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (NetworkQuerySet) UpdatedAtIsNotNull

func (qs NetworkQuerySet) UpdatedAtIsNotNull() NetworkQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (NetworkQuerySet) UpdatedAtIsNull

func (qs NetworkQuerySet) UpdatedAtIsNull() NetworkQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (NetworkQuerySet) UpdatedAtLt

func (qs NetworkQuerySet) UpdatedAtLt(updatedAt time.Time) NetworkQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (NetworkQuerySet) UpdatedAtLte

func (qs NetworkQuerySet) UpdatedAtLte(updatedAt time.Time) NetworkQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (NetworkQuerySet) UpdatedAtNe

func (qs NetworkQuerySet) UpdatedAtNe(updatedAt time.Time) NetworkQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

type NetworkUpdater

type NetworkUpdater struct {
	// contains filtered or unexported fields
}

NetworkUpdater is an Network updates manager

func NewNetworkUpdater

func NewNetworkUpdater(db *gorm.DB) NetworkUpdater

NewNetworkUpdater creates new Network updater nolint: dupl

func (NetworkUpdater) SetCreatedAt

func (u NetworkUpdater) SetCreatedAt(createdAt time.Time) NetworkUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (NetworkUpdater) SetCreatedByID

func (u NetworkUpdater) SetCreatedByID(createdByID ID) NetworkUpdater

SetCreatedByID is an autogenerated method nolint: dupl

func (NetworkUpdater) SetDeletedAt

func (u NetworkUpdater) SetDeletedAt(deletedAt *time.Time) NetworkUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (NetworkUpdater) SetDescription

func (u NetworkUpdater) SetDescription(description string) NetworkUpdater

SetDescription is an autogenerated method nolint: dupl

func (NetworkUpdater) SetID

func (u NetworkUpdater) SetID(ID ID) NetworkUpdater

SetID is an autogenerated method nolint: dupl

func (NetworkUpdater) SetName

func (u NetworkUpdater) SetName(name string) NetworkUpdater

SetName is an autogenerated method nolint: dupl

func (NetworkUpdater) SetUpdatedAt

func (u NetworkUpdater) SetUpdatedAt(updatedAt *time.Time) NetworkUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (NetworkUpdater) Update

func (u NetworkUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (NetworkUpdater) UpdateNum

func (u NetworkUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type NetworkUser

type NetworkUser struct {
	Deletable

	UserID    ID       `gorm:"not null;index"`
	User      *User    `gorm:"foreignkey:UserID"`
	NetworkID ID       `gorm:"not null"`
	Network   *Network `gorm:"foreignkey:NetworkID"`
	Role      RoleType `gorm:"type:enum('owner','admin', 'member');default:'member'"`
}

NetworkUser is used to associate users to networks

func (*NetworkUser) Create

func (o *NetworkUser) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*NetworkUser) Delete

func (o *NetworkUser) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*NetworkUser) Update

func (o *NetworkUser) Update(db *gorm.DB, fields ...NetworkUserDBSchemaField) error

Update updates NetworkUser fields by primary key nolint: dupl

type NetworkUserDBSchemaField

type NetworkUserDBSchemaField string

NetworkUserDBSchemaField describes database schema field. It requires for method 'Update'

func (NetworkUserDBSchemaField) String

func (f NetworkUserDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type NetworkUserQuerySet

type NetworkUserQuerySet struct {
	// contains filtered or unexported fields
}

NetworkUserQuerySet is an queryset type for NetworkUser

func NewNetworkUserQuerySet

func NewNetworkUserQuerySet(db *gorm.DB) NetworkUserQuerySet

NewNetworkUserQuerySet constructs new NetworkUserQuerySet

func (NetworkUserQuerySet) All

func (qs NetworkUserQuerySet) All(ret *[]NetworkUser) error

All is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) Count

func (qs NetworkUserQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) CreatedAtEq

func (qs NetworkUserQuerySet) CreatedAtEq(createdAt time.Time) NetworkUserQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) CreatedAtGt

func (qs NetworkUserQuerySet) CreatedAtGt(createdAt time.Time) NetworkUserQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) CreatedAtGte

func (qs NetworkUserQuerySet) CreatedAtGte(createdAt time.Time) NetworkUserQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) CreatedAtLt

func (qs NetworkUserQuerySet) CreatedAtLt(createdAt time.Time) NetworkUserQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) CreatedAtLte

func (qs NetworkUserQuerySet) CreatedAtLte(createdAt time.Time) NetworkUserQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) CreatedAtNe

func (qs NetworkUserQuerySet) CreatedAtNe(createdAt time.Time) NetworkUserQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) Delete

func (qs NetworkUserQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeleteNum

func (qs NetworkUserQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeleteNumUnscoped

func (qs NetworkUserQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtEq

func (qs NetworkUserQuerySet) DeletedAtEq(deletedAt time.Time) NetworkUserQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtGt

func (qs NetworkUserQuerySet) DeletedAtGt(deletedAt time.Time) NetworkUserQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtGte

func (qs NetworkUserQuerySet) DeletedAtGte(deletedAt time.Time) NetworkUserQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtIsNotNull

func (qs NetworkUserQuerySet) DeletedAtIsNotNull() NetworkUserQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtIsNull

func (qs NetworkUserQuerySet) DeletedAtIsNull() NetworkUserQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtLt

func (qs NetworkUserQuerySet) DeletedAtLt(deletedAt time.Time) NetworkUserQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtLte

func (qs NetworkUserQuerySet) DeletedAtLte(deletedAt time.Time) NetworkUserQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) DeletedAtNe

func (qs NetworkUserQuerySet) DeletedAtNe(deletedAt time.Time) NetworkUserQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) GetDB

func (qs NetworkUserQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) GetUpdater

func (qs NetworkUserQuerySet) GetUpdater() NetworkUserUpdater

GetUpdater is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDEq

IDEq is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDGt

IDGt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDGte

IDGte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDIn

IDIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDLt

IDLt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDLte

IDLte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDNe

IDNe is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) IDNotIn

func (qs NetworkUserQuerySet) IDNotIn(ID ...ID) NetworkUserQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) Limit

Limit is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDEq

func (qs NetworkUserQuerySet) NetworkIDEq(networkID ID) NetworkUserQuerySet

NetworkIDEq is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDGt

func (qs NetworkUserQuerySet) NetworkIDGt(networkID ID) NetworkUserQuerySet

NetworkIDGt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDGte

func (qs NetworkUserQuerySet) NetworkIDGte(networkID ID) NetworkUserQuerySet

NetworkIDGte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDIn

func (qs NetworkUserQuerySet) NetworkIDIn(networkID ...ID) NetworkUserQuerySet

NetworkIDIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDLt

func (qs NetworkUserQuerySet) NetworkIDLt(networkID ID) NetworkUserQuerySet

NetworkIDLt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDLte

func (qs NetworkUserQuerySet) NetworkIDLte(networkID ID) NetworkUserQuerySet

NetworkIDLte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDNe

func (qs NetworkUserQuerySet) NetworkIDNe(networkID ID) NetworkUserQuerySet

NetworkIDNe is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIDNotIn

func (qs NetworkUserQuerySet) NetworkIDNotIn(networkID ...ID) NetworkUserQuerySet

NetworkIDNotIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIsNotNull

func (qs NetworkUserQuerySet) NetworkIsNotNull() NetworkUserQuerySet

NetworkIsNotNull is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) NetworkIsNull

func (qs NetworkUserQuerySet) NetworkIsNull() NetworkUserQuerySet

NetworkIsNull is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) Offset

func (qs NetworkUserQuerySet) Offset(offset int) NetworkUserQuerySet

Offset is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) One

func (qs NetworkUserQuerySet) One(ret *NetworkUser) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (NetworkUserQuerySet) OrderAscByCreatedAt

func (qs NetworkUserQuerySet) OrderAscByCreatedAt() NetworkUserQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderAscByDeletedAt

func (qs NetworkUserQuerySet) OrderAscByDeletedAt() NetworkUserQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderAscByID

func (qs NetworkUserQuerySet) OrderAscByID() NetworkUserQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderAscByNetworkID

func (qs NetworkUserQuerySet) OrderAscByNetworkID() NetworkUserQuerySet

OrderAscByNetworkID is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderAscByRole

func (qs NetworkUserQuerySet) OrderAscByRole() NetworkUserQuerySet

OrderAscByRole is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderAscByUpdatedAt

func (qs NetworkUserQuerySet) OrderAscByUpdatedAt() NetworkUserQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderAscByUserID

func (qs NetworkUserQuerySet) OrderAscByUserID() NetworkUserQuerySet

OrderAscByUserID is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderDescByCreatedAt

func (qs NetworkUserQuerySet) OrderDescByCreatedAt() NetworkUserQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderDescByDeletedAt

func (qs NetworkUserQuerySet) OrderDescByDeletedAt() NetworkUserQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderDescByID

func (qs NetworkUserQuerySet) OrderDescByID() NetworkUserQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderDescByNetworkID

func (qs NetworkUserQuerySet) OrderDescByNetworkID() NetworkUserQuerySet

OrderDescByNetworkID is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderDescByRole

func (qs NetworkUserQuerySet) OrderDescByRole() NetworkUserQuerySet

OrderDescByRole is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderDescByUpdatedAt

func (qs NetworkUserQuerySet) OrderDescByUpdatedAt() NetworkUserQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) OrderDescByUserID

func (qs NetworkUserQuerySet) OrderDescByUserID() NetworkUserQuerySet

OrderDescByUserID is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) Preload

func (qs NetworkUserQuerySet) Preload(query string, args ...interface{}) NetworkUserQuerySet

func (NetworkUserQuerySet) PreloadNetwork

func (qs NetworkUserQuerySet) PreloadNetwork() NetworkUserQuerySet

PreloadNetwork is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) PreloadUser

func (qs NetworkUserQuerySet) PreloadUser() NetworkUserQuerySet

PreloadUser is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleEq

RoleEq is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleGt

RoleGt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleGte

RoleGte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleIn

RoleIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleLike

RoleLike is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleLt

RoleLt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleLte

RoleLte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleNe

RoleNe is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleNotIn

func (qs NetworkUserQuerySet) RoleNotIn(role ...RoleType) NetworkUserQuerySet

RoleNotIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) RoleNotlike

func (qs NetworkUserQuerySet) RoleNotlike(role RoleType) NetworkUserQuerySet

RoleNotlike is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) Select

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (NetworkUserQuerySet) UpdatedAtEq

func (qs NetworkUserQuerySet) UpdatedAtEq(updatedAt time.Time) NetworkUserQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UpdatedAtGt

func (qs NetworkUserQuerySet) UpdatedAtGt(updatedAt time.Time) NetworkUserQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UpdatedAtGte

func (qs NetworkUserQuerySet) UpdatedAtGte(updatedAt time.Time) NetworkUserQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UpdatedAtIsNotNull

func (qs NetworkUserQuerySet) UpdatedAtIsNotNull() NetworkUserQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UpdatedAtIsNull

func (qs NetworkUserQuerySet) UpdatedAtIsNull() NetworkUserQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UpdatedAtLt

func (qs NetworkUserQuerySet) UpdatedAtLt(updatedAt time.Time) NetworkUserQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UpdatedAtLte

func (qs NetworkUserQuerySet) UpdatedAtLte(updatedAt time.Time) NetworkUserQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UpdatedAtNe

func (qs NetworkUserQuerySet) UpdatedAtNe(updatedAt time.Time) NetworkUserQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDEq

func (qs NetworkUserQuerySet) UserIDEq(userID ID) NetworkUserQuerySet

UserIDEq is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDGt

func (qs NetworkUserQuerySet) UserIDGt(userID ID) NetworkUserQuerySet

UserIDGt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDGte

func (qs NetworkUserQuerySet) UserIDGte(userID ID) NetworkUserQuerySet

UserIDGte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDIn

func (qs NetworkUserQuerySet) UserIDIn(userID ...ID) NetworkUserQuerySet

UserIDIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDLt

func (qs NetworkUserQuerySet) UserIDLt(userID ID) NetworkUserQuerySet

UserIDLt is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDLte

func (qs NetworkUserQuerySet) UserIDLte(userID ID) NetworkUserQuerySet

UserIDLte is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDNe

func (qs NetworkUserQuerySet) UserIDNe(userID ID) NetworkUserQuerySet

UserIDNe is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIDNotIn

func (qs NetworkUserQuerySet) UserIDNotIn(userID ...ID) NetworkUserQuerySet

UserIDNotIn is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIsNotNull

func (qs NetworkUserQuerySet) UserIsNotNull() NetworkUserQuerySet

UserIsNotNull is an autogenerated method nolint: dupl

func (NetworkUserQuerySet) UserIsNull

func (qs NetworkUserQuerySet) UserIsNull() NetworkUserQuerySet

UserIsNull is an autogenerated method nolint: dupl

type NetworkUserUpdater

type NetworkUserUpdater struct {
	// contains filtered or unexported fields
}

NetworkUserUpdater is an NetworkUser updates manager

func NewNetworkUserUpdater

func NewNetworkUserUpdater(db *gorm.DB) NetworkUserUpdater

NewNetworkUserUpdater creates new NetworkUser updater nolint: dupl

func (NetworkUserUpdater) SetCreatedAt

func (u NetworkUserUpdater) SetCreatedAt(createdAt time.Time) NetworkUserUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (NetworkUserUpdater) SetDeletedAt

func (u NetworkUserUpdater) SetDeletedAt(deletedAt *time.Time) NetworkUserUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (NetworkUserUpdater) SetID

SetID is an autogenerated method nolint: dupl

func (NetworkUserUpdater) SetNetworkID

func (u NetworkUserUpdater) SetNetworkID(networkID ID) NetworkUserUpdater

SetNetworkID is an autogenerated method nolint: dupl

func (NetworkUserUpdater) SetRole

SetRole is an autogenerated method nolint: dupl

func (NetworkUserUpdater) SetUpdatedAt

func (u NetworkUserUpdater) SetUpdatedAt(updatedAt *time.Time) NetworkUserUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (NetworkUserUpdater) SetUserID

func (u NetworkUserUpdater) SetUserID(userID ID) NetworkUserUpdater

SetUserID is an autogenerated method nolint: dupl

func (NetworkUserUpdater) Update

func (u NetworkUserUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (NetworkUserUpdater) UpdateNum

func (u NetworkUserUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type RelayServer

type RelayServer struct {
	Deletable
	Name        string    `gorm:"type:varchar(128);not null;unique"`
	Region      string    `gorm:"type:varchar(32);not null"`
	Host        string    `gorm:"type:varchar(64);not null"`
	Port        int       `gorm:"not null;default:0"`
	STUNPort    int       `gorm:"not null;default:0"`
	PublicKey   string    `gorm:"type:varchar(64);not null"`
	StartedAt   time.Time `gorm:"not null"`
	KeepaliveAt time.Time `gorm:"not null"`
}

RelayServer describes a relay server packet relay node running within a RelayRe.

func (*RelayServer) Create

func (o *RelayServer) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*RelayServer) Delete

func (o *RelayServer) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*RelayServer) Update

func (o *RelayServer) Update(db *gorm.DB, fields ...RelayServerDBSchemaField) error

Update updates RelayServer fields by primary key nolint: dupl

type RelayServerDBSchemaField

type RelayServerDBSchemaField string

RelayServerDBSchemaField describes database schema field. It requires for method 'Update'

func (RelayServerDBSchemaField) String

func (f RelayServerDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type RelayServerQuerySet

type RelayServerQuerySet struct {
	// contains filtered or unexported fields
}

RelayServerQuerySet is an queryset type for RelayServer

func NewRelayServerQuerySet

func NewRelayServerQuerySet(db *gorm.DB) RelayServerQuerySet

NewRelayServerQuerySet constructs new RelayServerQuerySet

func (RelayServerQuerySet) All

func (qs RelayServerQuerySet) All(ret *[]RelayServer) error

All is an autogenerated method nolint: dupl

func (RelayServerQuerySet) Count

func (qs RelayServerQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (RelayServerQuerySet) CreatedAtEq

func (qs RelayServerQuerySet) CreatedAtEq(createdAt time.Time) RelayServerQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) CreatedAtGt

func (qs RelayServerQuerySet) CreatedAtGt(createdAt time.Time) RelayServerQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) CreatedAtGte

func (qs RelayServerQuerySet) CreatedAtGte(createdAt time.Time) RelayServerQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) CreatedAtLt

func (qs RelayServerQuerySet) CreatedAtLt(createdAt time.Time) RelayServerQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) CreatedAtLte

func (qs RelayServerQuerySet) CreatedAtLte(createdAt time.Time) RelayServerQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) CreatedAtNe

func (qs RelayServerQuerySet) CreatedAtNe(createdAt time.Time) RelayServerQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) Delete

func (qs RelayServerQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeleteNum

func (qs RelayServerQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeleteNumUnscoped

func (qs RelayServerQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtEq

func (qs RelayServerQuerySet) DeletedAtEq(deletedAt time.Time) RelayServerQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtGt

func (qs RelayServerQuerySet) DeletedAtGt(deletedAt time.Time) RelayServerQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtGte

func (qs RelayServerQuerySet) DeletedAtGte(deletedAt time.Time) RelayServerQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtIsNotNull

func (qs RelayServerQuerySet) DeletedAtIsNotNull() RelayServerQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtIsNull

func (qs RelayServerQuerySet) DeletedAtIsNull() RelayServerQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtLt

func (qs RelayServerQuerySet) DeletedAtLt(deletedAt time.Time) RelayServerQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtLte

func (qs RelayServerQuerySet) DeletedAtLte(deletedAt time.Time) RelayServerQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) DeletedAtNe

func (qs RelayServerQuerySet) DeletedAtNe(deletedAt time.Time) RelayServerQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) GetDB

func (qs RelayServerQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (RelayServerQuerySet) GetUpdater

func (qs RelayServerQuerySet) GetUpdater() RelayServerUpdater

GetUpdater is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostEq

HostEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostGt

HostGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostGte

HostGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostIn

func (qs RelayServerQuerySet) HostIn(host ...string) RelayServerQuerySet

HostIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostLike

HostLike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostLt

HostLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostLte

HostLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostNe

HostNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostNotIn

func (qs RelayServerQuerySet) HostNotIn(host ...string) RelayServerQuerySet

HostNotIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) HostNotlike

func (qs RelayServerQuerySet) HostNotlike(host string) RelayServerQuerySet

HostNotlike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDEq

IDEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDGt

IDGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDGte

IDGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDIn

IDIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDLt

IDLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDLte

IDLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDNe

IDNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) IDNotIn

func (qs RelayServerQuerySet) IDNotIn(ID ...ID) RelayServerQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) KeepaliveAtEq

func (qs RelayServerQuerySet) KeepaliveAtEq(keepaliveAt time.Time) RelayServerQuerySet

KeepaliveAtEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) KeepaliveAtGt

func (qs RelayServerQuerySet) KeepaliveAtGt(keepaliveAt time.Time) RelayServerQuerySet

KeepaliveAtGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) KeepaliveAtGte

func (qs RelayServerQuerySet) KeepaliveAtGte(keepaliveAt time.Time) RelayServerQuerySet

KeepaliveAtGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) KeepaliveAtLt

func (qs RelayServerQuerySet) KeepaliveAtLt(keepaliveAt time.Time) RelayServerQuerySet

KeepaliveAtLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) KeepaliveAtLte

func (qs RelayServerQuerySet) KeepaliveAtLte(keepaliveAt time.Time) RelayServerQuerySet

KeepaliveAtLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) KeepaliveAtNe

func (qs RelayServerQuerySet) KeepaliveAtNe(keepaliveAt time.Time) RelayServerQuerySet

KeepaliveAtNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) Limit

Limit is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameEq

NameEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameGt

NameGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameGte

NameGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameIn

func (qs RelayServerQuerySet) NameIn(name ...string) RelayServerQuerySet

NameIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameLike

NameLike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameLt

NameLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameLte

NameLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameNe

NameNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameNotIn

func (qs RelayServerQuerySet) NameNotIn(name ...string) RelayServerQuerySet

NameNotIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) NameNotlike

func (qs RelayServerQuerySet) NameNotlike(name string) RelayServerQuerySet

NameNotlike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) Offset

func (qs RelayServerQuerySet) Offset(offset int) RelayServerQuerySet

Offset is an autogenerated method nolint: dupl

func (RelayServerQuerySet) One

func (qs RelayServerQuerySet) One(ret *RelayServer) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (RelayServerQuerySet) OrderAscByCreatedAt

func (qs RelayServerQuerySet) OrderAscByCreatedAt() RelayServerQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByDeletedAt

func (qs RelayServerQuerySet) OrderAscByDeletedAt() RelayServerQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByHost

func (qs RelayServerQuerySet) OrderAscByHost() RelayServerQuerySet

OrderAscByHost is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByID

func (qs RelayServerQuerySet) OrderAscByID() RelayServerQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByKeepaliveAt

func (qs RelayServerQuerySet) OrderAscByKeepaliveAt() RelayServerQuerySet

OrderAscByKeepaliveAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByName

func (qs RelayServerQuerySet) OrderAscByName() RelayServerQuerySet

OrderAscByName is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByPort

func (qs RelayServerQuerySet) OrderAscByPort() RelayServerQuerySet

OrderAscByPort is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByPublicKey

func (qs RelayServerQuerySet) OrderAscByPublicKey() RelayServerQuerySet

OrderAscByPublicKey is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByRegion

func (qs RelayServerQuerySet) OrderAscByRegion() RelayServerQuerySet

OrderAscByRegion is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscBySTUNPort

func (qs RelayServerQuerySet) OrderAscBySTUNPort() RelayServerQuerySet

OrderAscBySTUNPort is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByStartedAt

func (qs RelayServerQuerySet) OrderAscByStartedAt() RelayServerQuerySet

OrderAscByStartedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderAscByUpdatedAt

func (qs RelayServerQuerySet) OrderAscByUpdatedAt() RelayServerQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByCreatedAt

func (qs RelayServerQuerySet) OrderDescByCreatedAt() RelayServerQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByDeletedAt

func (qs RelayServerQuerySet) OrderDescByDeletedAt() RelayServerQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByHost

func (qs RelayServerQuerySet) OrderDescByHost() RelayServerQuerySet

OrderDescByHost is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByID

func (qs RelayServerQuerySet) OrderDescByID() RelayServerQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByKeepaliveAt

func (qs RelayServerQuerySet) OrderDescByKeepaliveAt() RelayServerQuerySet

OrderDescByKeepaliveAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByName

func (qs RelayServerQuerySet) OrderDescByName() RelayServerQuerySet

OrderDescByName is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByPort

func (qs RelayServerQuerySet) OrderDescByPort() RelayServerQuerySet

OrderDescByPort is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByPublicKey

func (qs RelayServerQuerySet) OrderDescByPublicKey() RelayServerQuerySet

OrderDescByPublicKey is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByRegion

func (qs RelayServerQuerySet) OrderDescByRegion() RelayServerQuerySet

OrderDescByRegion is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescBySTUNPort

func (qs RelayServerQuerySet) OrderDescBySTUNPort() RelayServerQuerySet

OrderDescBySTUNPort is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByStartedAt

func (qs RelayServerQuerySet) OrderDescByStartedAt() RelayServerQuerySet

OrderDescByStartedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) OrderDescByUpdatedAt

func (qs RelayServerQuerySet) OrderDescByUpdatedAt() RelayServerQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortEq

PortEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortGt

PortGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortGte

func (qs RelayServerQuerySet) PortGte(port int) RelayServerQuerySet

PortGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortIn

func (qs RelayServerQuerySet) PortIn(port ...int) RelayServerQuerySet

PortIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortLt

PortLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortLte

func (qs RelayServerQuerySet) PortLte(port int) RelayServerQuerySet

PortLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortNe

PortNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PortNotIn

func (qs RelayServerQuerySet) PortNotIn(port ...int) RelayServerQuerySet

PortNotIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) Preload

func (qs RelayServerQuerySet) Preload(query string, args ...interface{}) RelayServerQuerySet

func (RelayServerQuerySet) PublicKeyEq

func (qs RelayServerQuerySet) PublicKeyEq(publicKey string) RelayServerQuerySet

PublicKeyEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyGt

func (qs RelayServerQuerySet) PublicKeyGt(publicKey string) RelayServerQuerySet

PublicKeyGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyGte

func (qs RelayServerQuerySet) PublicKeyGte(publicKey string) RelayServerQuerySet

PublicKeyGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyIn

func (qs RelayServerQuerySet) PublicKeyIn(publicKey ...string) RelayServerQuerySet

PublicKeyIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyLike

func (qs RelayServerQuerySet) PublicKeyLike(publicKey string) RelayServerQuerySet

PublicKeyLike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyLt

func (qs RelayServerQuerySet) PublicKeyLt(publicKey string) RelayServerQuerySet

PublicKeyLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyLte

func (qs RelayServerQuerySet) PublicKeyLte(publicKey string) RelayServerQuerySet

PublicKeyLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyNe

func (qs RelayServerQuerySet) PublicKeyNe(publicKey string) RelayServerQuerySet

PublicKeyNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyNotIn

func (qs RelayServerQuerySet) PublicKeyNotIn(publicKey ...string) RelayServerQuerySet

PublicKeyNotIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) PublicKeyNotlike

func (qs RelayServerQuerySet) PublicKeyNotlike(publicKey string) RelayServerQuerySet

PublicKeyNotlike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionEq

func (qs RelayServerQuerySet) RegionEq(region string) RelayServerQuerySet

RegionEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionGt

func (qs RelayServerQuerySet) RegionGt(region string) RelayServerQuerySet

RegionGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionGte

func (qs RelayServerQuerySet) RegionGte(region string) RelayServerQuerySet

RegionGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionIn

func (qs RelayServerQuerySet) RegionIn(region ...string) RelayServerQuerySet

RegionIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionLike

func (qs RelayServerQuerySet) RegionLike(region string) RelayServerQuerySet

RegionLike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionLt

func (qs RelayServerQuerySet) RegionLt(region string) RelayServerQuerySet

RegionLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionLte

func (qs RelayServerQuerySet) RegionLte(region string) RelayServerQuerySet

RegionLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionNe

func (qs RelayServerQuerySet) RegionNe(region string) RelayServerQuerySet

RegionNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionNotIn

func (qs RelayServerQuerySet) RegionNotIn(region ...string) RelayServerQuerySet

RegionNotIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) RegionNotlike

func (qs RelayServerQuerySet) RegionNotlike(region string) RelayServerQuerySet

RegionNotlike is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortEq

func (qs RelayServerQuerySet) STUNPortEq(sTUNPort int) RelayServerQuerySet

STUNPortEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortGt

func (qs RelayServerQuerySet) STUNPortGt(sTUNPort int) RelayServerQuerySet

STUNPortGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortGte

func (qs RelayServerQuerySet) STUNPortGte(sTUNPort int) RelayServerQuerySet

STUNPortGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortIn

func (qs RelayServerQuerySet) STUNPortIn(sTUNPort ...int) RelayServerQuerySet

STUNPortIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortLt

func (qs RelayServerQuerySet) STUNPortLt(sTUNPort int) RelayServerQuerySet

STUNPortLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortLte

func (qs RelayServerQuerySet) STUNPortLte(sTUNPort int) RelayServerQuerySet

STUNPortLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortNe

func (qs RelayServerQuerySet) STUNPortNe(sTUNPort int) RelayServerQuerySet

STUNPortNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) STUNPortNotIn

func (qs RelayServerQuerySet) STUNPortNotIn(sTUNPort ...int) RelayServerQuerySet

STUNPortNotIn is an autogenerated method nolint: dupl

func (RelayServerQuerySet) Select

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (RelayServerQuerySet) StartedAtEq

func (qs RelayServerQuerySet) StartedAtEq(startedAt time.Time) RelayServerQuerySet

StartedAtEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) StartedAtGt

func (qs RelayServerQuerySet) StartedAtGt(startedAt time.Time) RelayServerQuerySet

StartedAtGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) StartedAtGte

func (qs RelayServerQuerySet) StartedAtGte(startedAt time.Time) RelayServerQuerySet

StartedAtGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) StartedAtLt

func (qs RelayServerQuerySet) StartedAtLt(startedAt time.Time) RelayServerQuerySet

StartedAtLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) StartedAtLte

func (qs RelayServerQuerySet) StartedAtLte(startedAt time.Time) RelayServerQuerySet

StartedAtLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) StartedAtNe

func (qs RelayServerQuerySet) StartedAtNe(startedAt time.Time) RelayServerQuerySet

StartedAtNe is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtEq

func (qs RelayServerQuerySet) UpdatedAtEq(updatedAt time.Time) RelayServerQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtGt

func (qs RelayServerQuerySet) UpdatedAtGt(updatedAt time.Time) RelayServerQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtGte

func (qs RelayServerQuerySet) UpdatedAtGte(updatedAt time.Time) RelayServerQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtIsNotNull

func (qs RelayServerQuerySet) UpdatedAtIsNotNull() RelayServerQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtIsNull

func (qs RelayServerQuerySet) UpdatedAtIsNull() RelayServerQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtLt

func (qs RelayServerQuerySet) UpdatedAtLt(updatedAt time.Time) RelayServerQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtLte

func (qs RelayServerQuerySet) UpdatedAtLte(updatedAt time.Time) RelayServerQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (RelayServerQuerySet) UpdatedAtNe

func (qs RelayServerQuerySet) UpdatedAtNe(updatedAt time.Time) RelayServerQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

type RelayServerUpdater

type RelayServerUpdater struct {
	// contains filtered or unexported fields
}

RelayServerUpdater is an RelayServer updates manager

func NewRelayServerUpdater

func NewRelayServerUpdater(db *gorm.DB) RelayServerUpdater

NewRelayServerUpdater creates new RelayServer updater nolint: dupl

func (RelayServerUpdater) SetCreatedAt

func (u RelayServerUpdater) SetCreatedAt(createdAt time.Time) RelayServerUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetDeletedAt

func (u RelayServerUpdater) SetDeletedAt(deletedAt *time.Time) RelayServerUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetHost

SetHost is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetID

SetID is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetKeepaliveAt

func (u RelayServerUpdater) SetKeepaliveAt(keepaliveAt time.Time) RelayServerUpdater

SetKeepaliveAt is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetName

SetName is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetPort

func (u RelayServerUpdater) SetPort(port int) RelayServerUpdater

SetPort is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetPublicKey

func (u RelayServerUpdater) SetPublicKey(publicKey string) RelayServerUpdater

SetPublicKey is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetRegion

func (u RelayServerUpdater) SetRegion(region string) RelayServerUpdater

SetRegion is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetSTUNPort

func (u RelayServerUpdater) SetSTUNPort(sTUNPort int) RelayServerUpdater

SetSTUNPort is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetStartedAt

func (u RelayServerUpdater) SetStartedAt(startedAt time.Time) RelayServerUpdater

SetStartedAt is an autogenerated method nolint: dupl

func (RelayServerUpdater) SetUpdatedAt

func (u RelayServerUpdater) SetUpdatedAt(updatedAt *time.Time) RelayServerUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (RelayServerUpdater) Update

func (u RelayServerUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (RelayServerUpdater) UpdateNum

func (u RelayServerUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type RoleType

type RoleType string
const (
	RoleTypeOwner  RoleType = "owner"
	RoleTypeAdmin  RoleType = "admin"
	RoleTypeMember RoleType = "member"
)

func (RoleType) String

func (r RoleType) String() string

String implements the fmt.Stringer interface

type Updatable

type Updatable struct {
	Base
	//a time pointer which will mean it can be a nil value
	UpdatedAt *time.Time
}

Updatable is the base columns of updatable tables

type User

type User struct {
	Deletable

	// with a PairMesh user, it must be  unique & not null
	Email     string `gorm:"type:varchar(64)"`
	Avatar    string `gorm:"type:varchar(512)"`
	Name      string `gorm:"type:varchar(64);not null"`
	Salt      string `gorm:"type:varchar(64);not null"`
	Hash      string `gorm:"type:varchar(64);not null"`
	SecretKey string `gorm:"type:varchar(64);not null"`
	Origin    string `gorm:"type:enum('pairmesh','github','wechat');default:'pairmesh'"`
}

User represents the user table in database

func BuildUser

func BuildUser() User

BuildUser generate a stub user for sso

func (*User) Create

func (o *User) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*User) Delete

func (o *User) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*User) Update

func (o *User) Update(db *gorm.DB, fields ...UserDBSchemaField) error

Update updates User fields by primary key nolint: dupl

type UserDBSchemaField

type UserDBSchemaField string

UserDBSchemaField describes database schema field. It requires for method 'Update'

func (UserDBSchemaField) String

func (f UserDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type UserQuerySet

type UserQuerySet struct {
	// contains filtered or unexported fields
}

UserQuerySet is an queryset type for User

func NewUserQuerySet

func NewUserQuerySet(db *gorm.DB) UserQuerySet

NewUserQuerySet constructs new UserQuerySet

func (UserQuerySet) All

func (qs UserQuerySet) All(ret *[]User) error

All is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarEq

func (qs UserQuerySet) AvatarEq(avatar string) UserQuerySet

AvatarEq is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarGt

func (qs UserQuerySet) AvatarGt(avatar string) UserQuerySet

AvatarGt is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarGte

func (qs UserQuerySet) AvatarGte(avatar string) UserQuerySet

AvatarGte is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarIn

func (qs UserQuerySet) AvatarIn(avatar ...string) UserQuerySet

AvatarIn is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarLike

func (qs UserQuerySet) AvatarLike(avatar string) UserQuerySet

AvatarLike is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarLt

func (qs UserQuerySet) AvatarLt(avatar string) UserQuerySet

AvatarLt is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarLte

func (qs UserQuerySet) AvatarLte(avatar string) UserQuerySet

AvatarLte is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarNe

func (qs UserQuerySet) AvatarNe(avatar string) UserQuerySet

AvatarNe is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarNotIn

func (qs UserQuerySet) AvatarNotIn(avatar ...string) UserQuerySet

AvatarNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) AvatarNotlike

func (qs UserQuerySet) AvatarNotlike(avatar string) UserQuerySet

AvatarNotlike is an autogenerated method nolint: dupl

func (UserQuerySet) Count

func (qs UserQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtEq

func (qs UserQuerySet) CreatedAtEq(createdAt time.Time) UserQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtGt

func (qs UserQuerySet) CreatedAtGt(createdAt time.Time) UserQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtGte

func (qs UserQuerySet) CreatedAtGte(createdAt time.Time) UserQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtLt

func (qs UserQuerySet) CreatedAtLt(createdAt time.Time) UserQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtLte

func (qs UserQuerySet) CreatedAtLte(createdAt time.Time) UserQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtNe

func (qs UserQuerySet) CreatedAtNe(createdAt time.Time) UserQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (UserQuerySet) Delete

func (qs UserQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (UserQuerySet) DeleteNum

func (qs UserQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (UserQuerySet) DeleteNumUnscoped

func (qs UserQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtEq

func (qs UserQuerySet) DeletedAtEq(deletedAt time.Time) UserQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtGt

func (qs UserQuerySet) DeletedAtGt(deletedAt time.Time) UserQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtGte

func (qs UserQuerySet) DeletedAtGte(deletedAt time.Time) UserQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtIsNotNull

func (qs UserQuerySet) DeletedAtIsNotNull() UserQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtIsNull

func (qs UserQuerySet) DeletedAtIsNull() UserQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtLt

func (qs UserQuerySet) DeletedAtLt(deletedAt time.Time) UserQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtLte

func (qs UserQuerySet) DeletedAtLte(deletedAt time.Time) UserQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtNe

func (qs UserQuerySet) DeletedAtNe(deletedAt time.Time) UserQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (UserQuerySet) EmailEq

func (qs UserQuerySet) EmailEq(email string) UserQuerySet

EmailEq is an autogenerated method nolint: dupl

func (UserQuerySet) EmailGt

func (qs UserQuerySet) EmailGt(email string) UserQuerySet

EmailGt is an autogenerated method nolint: dupl

func (UserQuerySet) EmailGte

func (qs UserQuerySet) EmailGte(email string) UserQuerySet

EmailGte is an autogenerated method nolint: dupl

func (UserQuerySet) EmailIn

func (qs UserQuerySet) EmailIn(email ...string) UserQuerySet

EmailIn is an autogenerated method nolint: dupl

func (UserQuerySet) EmailLike

func (qs UserQuerySet) EmailLike(email string) UserQuerySet

EmailLike is an autogenerated method nolint: dupl

func (UserQuerySet) EmailLt

func (qs UserQuerySet) EmailLt(email string) UserQuerySet

EmailLt is an autogenerated method nolint: dupl

func (UserQuerySet) EmailLte

func (qs UserQuerySet) EmailLte(email string) UserQuerySet

EmailLte is an autogenerated method nolint: dupl

func (UserQuerySet) EmailNe

func (qs UserQuerySet) EmailNe(email string) UserQuerySet

EmailNe is an autogenerated method nolint: dupl

func (UserQuerySet) EmailNotIn

func (qs UserQuerySet) EmailNotIn(email ...string) UserQuerySet

EmailNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) EmailNotlike

func (qs UserQuerySet) EmailNotlike(email string) UserQuerySet

EmailNotlike is an autogenerated method nolint: dupl

func (UserQuerySet) GetDB

func (qs UserQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (UserQuerySet) GetUpdater

func (qs UserQuerySet) GetUpdater() UserUpdater

GetUpdater is an autogenerated method nolint: dupl

func (UserQuerySet) HashEq

func (qs UserQuerySet) HashEq(hash string) UserQuerySet

HashEq is an autogenerated method nolint: dupl

func (UserQuerySet) HashGt

func (qs UserQuerySet) HashGt(hash string) UserQuerySet

HashGt is an autogenerated method nolint: dupl

func (UserQuerySet) HashGte

func (qs UserQuerySet) HashGte(hash string) UserQuerySet

HashGte is an autogenerated method nolint: dupl

func (UserQuerySet) HashIn

func (qs UserQuerySet) HashIn(hash ...string) UserQuerySet

HashIn is an autogenerated method nolint: dupl

func (UserQuerySet) HashLike

func (qs UserQuerySet) HashLike(hash string) UserQuerySet

HashLike is an autogenerated method nolint: dupl

func (UserQuerySet) HashLt

func (qs UserQuerySet) HashLt(hash string) UserQuerySet

HashLt is an autogenerated method nolint: dupl

func (UserQuerySet) HashLte

func (qs UserQuerySet) HashLte(hash string) UserQuerySet

HashLte is an autogenerated method nolint: dupl

func (UserQuerySet) HashNe

func (qs UserQuerySet) HashNe(hash string) UserQuerySet

HashNe is an autogenerated method nolint: dupl

func (UserQuerySet) HashNotIn

func (qs UserQuerySet) HashNotIn(hash ...string) UserQuerySet

HashNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) HashNotlike

func (qs UserQuerySet) HashNotlike(hash string) UserQuerySet

HashNotlike is an autogenerated method nolint: dupl

func (UserQuerySet) IDEq

func (qs UserQuerySet) IDEq(ID ID) UserQuerySet

IDEq is an autogenerated method nolint: dupl

func (UserQuerySet) IDGt

func (qs UserQuerySet) IDGt(ID ID) UserQuerySet

IDGt is an autogenerated method nolint: dupl

func (UserQuerySet) IDGte

func (qs UserQuerySet) IDGte(ID ID) UserQuerySet

IDGte is an autogenerated method nolint: dupl

func (UserQuerySet) IDIn

func (qs UserQuerySet) IDIn(ID ...ID) UserQuerySet

IDIn is an autogenerated method nolint: dupl

func (UserQuerySet) IDLt

func (qs UserQuerySet) IDLt(ID ID) UserQuerySet

IDLt is an autogenerated method nolint: dupl

func (UserQuerySet) IDLte

func (qs UserQuerySet) IDLte(ID ID) UserQuerySet

IDLte is an autogenerated method nolint: dupl

func (UserQuerySet) IDNe

func (qs UserQuerySet) IDNe(ID ID) UserQuerySet

IDNe is an autogenerated method nolint: dupl

func (UserQuerySet) IDNotIn

func (qs UserQuerySet) IDNotIn(ID ...ID) UserQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) Limit

func (qs UserQuerySet) Limit(limit int) UserQuerySet

Limit is an autogenerated method nolint: dupl

func (UserQuerySet) NameEq

func (qs UserQuerySet) NameEq(name string) UserQuerySet

NameEq is an autogenerated method nolint: dupl

func (UserQuerySet) NameGt

func (qs UserQuerySet) NameGt(name string) UserQuerySet

NameGt is an autogenerated method nolint: dupl

func (UserQuerySet) NameGte

func (qs UserQuerySet) NameGte(name string) UserQuerySet

NameGte is an autogenerated method nolint: dupl

func (UserQuerySet) NameIn

func (qs UserQuerySet) NameIn(name ...string) UserQuerySet

NameIn is an autogenerated method nolint: dupl

func (UserQuerySet) NameLike

func (qs UserQuerySet) NameLike(name string) UserQuerySet

NameLike is an autogenerated method nolint: dupl

func (UserQuerySet) NameLt

func (qs UserQuerySet) NameLt(name string) UserQuerySet

NameLt is an autogenerated method nolint: dupl

func (UserQuerySet) NameLte

func (qs UserQuerySet) NameLte(name string) UserQuerySet

NameLte is an autogenerated method nolint: dupl

func (UserQuerySet) NameNe

func (qs UserQuerySet) NameNe(name string) UserQuerySet

NameNe is an autogenerated method nolint: dupl

func (UserQuerySet) NameNotIn

func (qs UserQuerySet) NameNotIn(name ...string) UserQuerySet

NameNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) NameNotlike

func (qs UserQuerySet) NameNotlike(name string) UserQuerySet

NameNotlike is an autogenerated method nolint: dupl

func (UserQuerySet) Offset

func (qs UserQuerySet) Offset(offset int) UserQuerySet

Offset is an autogenerated method nolint: dupl

func (UserQuerySet) One

func (qs UserQuerySet) One(ret *User) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (UserQuerySet) OrderAscByAvatar

func (qs UserQuerySet) OrderAscByAvatar() UserQuerySet

OrderAscByAvatar is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByCreatedAt

func (qs UserQuerySet) OrderAscByCreatedAt() UserQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByDeletedAt

func (qs UserQuerySet) OrderAscByDeletedAt() UserQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByEmail

func (qs UserQuerySet) OrderAscByEmail() UserQuerySet

OrderAscByEmail is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByHash

func (qs UserQuerySet) OrderAscByHash() UserQuerySet

OrderAscByHash is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByID

func (qs UserQuerySet) OrderAscByID() UserQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByName

func (qs UserQuerySet) OrderAscByName() UserQuerySet

OrderAscByName is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByOrigin

func (qs UserQuerySet) OrderAscByOrigin() UserQuerySet

OrderAscByOrigin is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscBySalt

func (qs UserQuerySet) OrderAscBySalt() UserQuerySet

OrderAscBySalt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscBySecretKey

func (qs UserQuerySet) OrderAscBySecretKey() UserQuerySet

OrderAscBySecretKey is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByUpdatedAt

func (qs UserQuerySet) OrderAscByUpdatedAt() UserQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByAvatar

func (qs UserQuerySet) OrderDescByAvatar() UserQuerySet

OrderDescByAvatar is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByCreatedAt

func (qs UserQuerySet) OrderDescByCreatedAt() UserQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByDeletedAt

func (qs UserQuerySet) OrderDescByDeletedAt() UserQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByEmail

func (qs UserQuerySet) OrderDescByEmail() UserQuerySet

OrderDescByEmail is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByHash

func (qs UserQuerySet) OrderDescByHash() UserQuerySet

OrderDescByHash is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByID

func (qs UserQuerySet) OrderDescByID() UserQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByName

func (qs UserQuerySet) OrderDescByName() UserQuerySet

OrderDescByName is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByOrigin

func (qs UserQuerySet) OrderDescByOrigin() UserQuerySet

OrderDescByOrigin is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescBySalt

func (qs UserQuerySet) OrderDescBySalt() UserQuerySet

OrderDescBySalt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescBySecretKey

func (qs UserQuerySet) OrderDescBySecretKey() UserQuerySet

OrderDescBySecretKey is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByUpdatedAt

func (qs UserQuerySet) OrderDescByUpdatedAt() UserQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OriginEq

func (qs UserQuerySet) OriginEq(origin string) UserQuerySet

OriginEq is an autogenerated method nolint: dupl

func (UserQuerySet) OriginGt

func (qs UserQuerySet) OriginGt(origin string) UserQuerySet

OriginGt is an autogenerated method nolint: dupl

func (UserQuerySet) OriginGte

func (qs UserQuerySet) OriginGte(origin string) UserQuerySet

OriginGte is an autogenerated method nolint: dupl

func (UserQuerySet) OriginIn

func (qs UserQuerySet) OriginIn(origin ...string) UserQuerySet

OriginIn is an autogenerated method nolint: dupl

func (UserQuerySet) OriginLike

func (qs UserQuerySet) OriginLike(origin string) UserQuerySet

OriginLike is an autogenerated method nolint: dupl

func (UserQuerySet) OriginLt

func (qs UserQuerySet) OriginLt(origin string) UserQuerySet

OriginLt is an autogenerated method nolint: dupl

func (UserQuerySet) OriginLte

func (qs UserQuerySet) OriginLte(origin string) UserQuerySet

OriginLte is an autogenerated method nolint: dupl

func (UserQuerySet) OriginNe

func (qs UserQuerySet) OriginNe(origin string) UserQuerySet

OriginNe is an autogenerated method nolint: dupl

func (UserQuerySet) OriginNotIn

func (qs UserQuerySet) OriginNotIn(origin ...string) UserQuerySet

OriginNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) OriginNotlike

func (qs UserQuerySet) OriginNotlike(origin string) UserQuerySet

OriginNotlike is an autogenerated method nolint: dupl

func (UserQuerySet) Preload

func (qs UserQuerySet) Preload(query string, args ...interface{}) UserQuerySet

func (UserQuerySet) SaltEq

func (qs UserQuerySet) SaltEq(salt string) UserQuerySet

SaltEq is an autogenerated method nolint: dupl

func (UserQuerySet) SaltGt

func (qs UserQuerySet) SaltGt(salt string) UserQuerySet

SaltGt is an autogenerated method nolint: dupl

func (UserQuerySet) SaltGte

func (qs UserQuerySet) SaltGte(salt string) UserQuerySet

SaltGte is an autogenerated method nolint: dupl

func (UserQuerySet) SaltIn

func (qs UserQuerySet) SaltIn(salt ...string) UserQuerySet

SaltIn is an autogenerated method nolint: dupl

func (UserQuerySet) SaltLike

func (qs UserQuerySet) SaltLike(salt string) UserQuerySet

SaltLike is an autogenerated method nolint: dupl

func (UserQuerySet) SaltLt

func (qs UserQuerySet) SaltLt(salt string) UserQuerySet

SaltLt is an autogenerated method nolint: dupl

func (UserQuerySet) SaltLte

func (qs UserQuerySet) SaltLte(salt string) UserQuerySet

SaltLte is an autogenerated method nolint: dupl

func (UserQuerySet) SaltNe

func (qs UserQuerySet) SaltNe(salt string) UserQuerySet

SaltNe is an autogenerated method nolint: dupl

func (UserQuerySet) SaltNotIn

func (qs UserQuerySet) SaltNotIn(salt ...string) UserQuerySet

SaltNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) SaltNotlike

func (qs UserQuerySet) SaltNotlike(salt string) UserQuerySet

SaltNotlike is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyEq

func (qs UserQuerySet) SecretKeyEq(secretKey string) UserQuerySet

SecretKeyEq is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyGt

func (qs UserQuerySet) SecretKeyGt(secretKey string) UserQuerySet

SecretKeyGt is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyGte

func (qs UserQuerySet) SecretKeyGte(secretKey string) UserQuerySet

SecretKeyGte is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyIn

func (qs UserQuerySet) SecretKeyIn(secretKey ...string) UserQuerySet

SecretKeyIn is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyLike

func (qs UserQuerySet) SecretKeyLike(secretKey string) UserQuerySet

SecretKeyLike is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyLt

func (qs UserQuerySet) SecretKeyLt(secretKey string) UserQuerySet

SecretKeyLt is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyLte

func (qs UserQuerySet) SecretKeyLte(secretKey string) UserQuerySet

SecretKeyLte is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyNe

func (qs UserQuerySet) SecretKeyNe(secretKey string) UserQuerySet

SecretKeyNe is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyNotIn

func (qs UserQuerySet) SecretKeyNotIn(secretKey ...string) UserQuerySet

SecretKeyNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) SecretKeyNotlike

func (qs UserQuerySet) SecretKeyNotlike(secretKey string) UserQuerySet

SecretKeyNotlike is an autogenerated method nolint: dupl

func (UserQuerySet) Select

func (qs UserQuerySet) Select(fields ...UserDBSchemaField) UserQuerySet

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (UserQuerySet) UpdatedAtEq

func (qs UserQuerySet) UpdatedAtEq(updatedAt time.Time) UserQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtGt

func (qs UserQuerySet) UpdatedAtGt(updatedAt time.Time) UserQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtGte

func (qs UserQuerySet) UpdatedAtGte(updatedAt time.Time) UserQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtIsNotNull

func (qs UserQuerySet) UpdatedAtIsNotNull() UserQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtIsNull

func (qs UserQuerySet) UpdatedAtIsNull() UserQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtLt

func (qs UserQuerySet) UpdatedAtLt(updatedAt time.Time) UserQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtLte

func (qs UserQuerySet) UpdatedAtLte(updatedAt time.Time) UserQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtNe

func (qs UserQuerySet) UpdatedAtNe(updatedAt time.Time) UserQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

type UserUpdater

type UserUpdater struct {
	// contains filtered or unexported fields
}

UserUpdater is an User updates manager

func NewUserUpdater

func NewUserUpdater(db *gorm.DB) UserUpdater

NewUserUpdater creates new User updater nolint: dupl

func (UserUpdater) SetAvatar

func (u UserUpdater) SetAvatar(avatar string) UserUpdater

SetAvatar is an autogenerated method nolint: dupl

func (UserUpdater) SetCreatedAt

func (u UserUpdater) SetCreatedAt(createdAt time.Time) UserUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (UserUpdater) SetDeletedAt

func (u UserUpdater) SetDeletedAt(deletedAt *time.Time) UserUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (UserUpdater) SetEmail

func (u UserUpdater) SetEmail(email string) UserUpdater

SetEmail is an autogenerated method nolint: dupl

func (UserUpdater) SetHash

func (u UserUpdater) SetHash(hash string) UserUpdater

SetHash is an autogenerated method nolint: dupl

func (UserUpdater) SetID

func (u UserUpdater) SetID(ID ID) UserUpdater

SetID is an autogenerated method nolint: dupl

func (UserUpdater) SetName

func (u UserUpdater) SetName(name string) UserUpdater

SetName is an autogenerated method nolint: dupl

func (UserUpdater) SetOrigin

func (u UserUpdater) SetOrigin(origin string) UserUpdater

SetOrigin is an autogenerated method nolint: dupl

func (UserUpdater) SetSalt

func (u UserUpdater) SetSalt(salt string) UserUpdater

SetSalt is an autogenerated method nolint: dupl

func (UserUpdater) SetSecretKey

func (u UserUpdater) SetSecretKey(secretKey string) UserUpdater

SetSecretKey is an autogenerated method nolint: dupl

func (UserUpdater) SetUpdatedAt

func (u UserUpdater) SetUpdatedAt(updatedAt *time.Time) UserUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (UserUpdater) Update

func (u UserUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (UserUpdater) UpdateNum

func (u UserUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

type WechatUser

type WechatUser struct {
	Deletable

	UserID     ID     `gorm:"not null;unique"`
	User       *User  `gorm:"foreignkey:UserID"`
	UnionId    string `gorm:"type:varchar(128);not null;unique"`
	Nickname   string `gorm:"type:varchar(64);not null;unique"`
	HeadImgUrl string `gorm:"type:varchar(512)"`
	City       string `gorm:"type:varchar(128)"`
}

WechatUser represents the wechat_user table in database

func (*WechatUser) Create

func (o *WechatUser) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*WechatUser) Delete

func (o *WechatUser) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*WechatUser) Update

func (o *WechatUser) Update(db *gorm.DB, fields ...WechatUserDBSchemaField) error

Update updates WechatUser fields by primary key nolint: dupl

type WechatUserDBSchemaField

type WechatUserDBSchemaField string

WechatUserDBSchemaField describes database schema field. It requires for method 'Update'

func (WechatUserDBSchemaField) String

func (f WechatUserDBSchemaField) String() string

String method returns string representation of field. nolint: dupl

type WechatUserQuerySet

type WechatUserQuerySet struct {
	// contains filtered or unexported fields
}

WechatUserQuerySet is an queryset type for WechatUser

func NewWechatUserQuerySet

func NewWechatUserQuerySet(db *gorm.DB) WechatUserQuerySet

NewWechatUserQuerySet constructs new WechatUserQuerySet

func (WechatUserQuerySet) All

func (qs WechatUserQuerySet) All(ret *[]WechatUser) error

All is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityEq

CityEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityGt

CityGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityGte

func (qs WechatUserQuerySet) CityGte(city string) WechatUserQuerySet

CityGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityIn

func (qs WechatUserQuerySet) CityIn(city ...string) WechatUserQuerySet

CityIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityLike

func (qs WechatUserQuerySet) CityLike(city string) WechatUserQuerySet

CityLike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityLt

CityLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityLte

func (qs WechatUserQuerySet) CityLte(city string) WechatUserQuerySet

CityLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityNe

CityNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityNotIn

func (qs WechatUserQuerySet) CityNotIn(city ...string) WechatUserQuerySet

CityNotIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CityNotlike

func (qs WechatUserQuerySet) CityNotlike(city string) WechatUserQuerySet

CityNotlike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) Count

func (qs WechatUserQuerySet) Count() (int64, error)

Count is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CreatedAtEq

func (qs WechatUserQuerySet) CreatedAtEq(createdAt time.Time) WechatUserQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CreatedAtGt

func (qs WechatUserQuerySet) CreatedAtGt(createdAt time.Time) WechatUserQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CreatedAtGte

func (qs WechatUserQuerySet) CreatedAtGte(createdAt time.Time) WechatUserQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CreatedAtLt

func (qs WechatUserQuerySet) CreatedAtLt(createdAt time.Time) WechatUserQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CreatedAtLte

func (qs WechatUserQuerySet) CreatedAtLte(createdAt time.Time) WechatUserQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) CreatedAtNe

func (qs WechatUserQuerySet) CreatedAtNe(createdAt time.Time) WechatUserQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) Delete

func (qs WechatUserQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeleteNum

func (qs WechatUserQuerySet) DeleteNum() (int64, error)

DeleteNum is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeleteNumUnscoped

func (qs WechatUserQuerySet) DeleteNumUnscoped() (int64, error)

DeleteNumUnscoped is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtEq

func (qs WechatUserQuerySet) DeletedAtEq(deletedAt time.Time) WechatUserQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtGt

func (qs WechatUserQuerySet) DeletedAtGt(deletedAt time.Time) WechatUserQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtGte

func (qs WechatUserQuerySet) DeletedAtGte(deletedAt time.Time) WechatUserQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtIsNotNull

func (qs WechatUserQuerySet) DeletedAtIsNotNull() WechatUserQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtIsNull

func (qs WechatUserQuerySet) DeletedAtIsNull() WechatUserQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtLt

func (qs WechatUserQuerySet) DeletedAtLt(deletedAt time.Time) WechatUserQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtLte

func (qs WechatUserQuerySet) DeletedAtLte(deletedAt time.Time) WechatUserQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) DeletedAtNe

func (qs WechatUserQuerySet) DeletedAtNe(deletedAt time.Time) WechatUserQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) GetDB

func (qs WechatUserQuerySet) GetDB() *gorm.DB

GetDB is an autogenerated method nolint: dupl

func (WechatUserQuerySet) GetUpdater

func (qs WechatUserQuerySet) GetUpdater() WechatUserUpdater

GetUpdater is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlEq

func (qs WechatUserQuerySet) HeadImgUrlEq(headImgUrl string) WechatUserQuerySet

HeadImgUrlEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlGt

func (qs WechatUserQuerySet) HeadImgUrlGt(headImgUrl string) WechatUserQuerySet

HeadImgUrlGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlGte

func (qs WechatUserQuerySet) HeadImgUrlGte(headImgUrl string) WechatUserQuerySet

HeadImgUrlGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlIn

func (qs WechatUserQuerySet) HeadImgUrlIn(headImgUrl ...string) WechatUserQuerySet

HeadImgUrlIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlLike

func (qs WechatUserQuerySet) HeadImgUrlLike(headImgUrl string) WechatUserQuerySet

HeadImgUrlLike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlLt

func (qs WechatUserQuerySet) HeadImgUrlLt(headImgUrl string) WechatUserQuerySet

HeadImgUrlLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlLte

func (qs WechatUserQuerySet) HeadImgUrlLte(headImgUrl string) WechatUserQuerySet

HeadImgUrlLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlNe

func (qs WechatUserQuerySet) HeadImgUrlNe(headImgUrl string) WechatUserQuerySet

HeadImgUrlNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlNotIn

func (qs WechatUserQuerySet) HeadImgUrlNotIn(headImgUrl ...string) WechatUserQuerySet

HeadImgUrlNotIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) HeadImgUrlNotlike

func (qs WechatUserQuerySet) HeadImgUrlNotlike(headImgUrl string) WechatUserQuerySet

HeadImgUrlNotlike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDEq

IDEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDGt

IDGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDGte

IDGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDIn

func (qs WechatUserQuerySet) IDIn(ID ...ID) WechatUserQuerySet

IDIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDLt

IDLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDLte

IDLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDNe

IDNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) IDNotIn

func (qs WechatUserQuerySet) IDNotIn(ID ...ID) WechatUserQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) Limit

func (qs WechatUserQuerySet) Limit(limit int) WechatUserQuerySet

Limit is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameEq

func (qs WechatUserQuerySet) NicknameEq(nickname string) WechatUserQuerySet

NicknameEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameGt

func (qs WechatUserQuerySet) NicknameGt(nickname string) WechatUserQuerySet

NicknameGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameGte

func (qs WechatUserQuerySet) NicknameGte(nickname string) WechatUserQuerySet

NicknameGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameIn

func (qs WechatUserQuerySet) NicknameIn(nickname ...string) WechatUserQuerySet

NicknameIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameLike

func (qs WechatUserQuerySet) NicknameLike(nickname string) WechatUserQuerySet

NicknameLike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameLt

func (qs WechatUserQuerySet) NicknameLt(nickname string) WechatUserQuerySet

NicknameLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameLte

func (qs WechatUserQuerySet) NicknameLte(nickname string) WechatUserQuerySet

NicknameLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameNe

func (qs WechatUserQuerySet) NicknameNe(nickname string) WechatUserQuerySet

NicknameNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameNotIn

func (qs WechatUserQuerySet) NicknameNotIn(nickname ...string) WechatUserQuerySet

NicknameNotIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) NicknameNotlike

func (qs WechatUserQuerySet) NicknameNotlike(nickname string) WechatUserQuerySet

NicknameNotlike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) Offset

func (qs WechatUserQuerySet) Offset(offset int) WechatUserQuerySet

Offset is an autogenerated method nolint: dupl

func (WechatUserQuerySet) One

func (qs WechatUserQuerySet) One(ret *WechatUser) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (WechatUserQuerySet) OrderAscByCity

func (qs WechatUserQuerySet) OrderAscByCity() WechatUserQuerySet

OrderAscByCity is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByCreatedAt

func (qs WechatUserQuerySet) OrderAscByCreatedAt() WechatUserQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByDeletedAt

func (qs WechatUserQuerySet) OrderAscByDeletedAt() WechatUserQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByHeadImgUrl

func (qs WechatUserQuerySet) OrderAscByHeadImgUrl() WechatUserQuerySet

OrderAscByHeadImgUrl is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByID

func (qs WechatUserQuerySet) OrderAscByID() WechatUserQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByNickname

func (qs WechatUserQuerySet) OrderAscByNickname() WechatUserQuerySet

OrderAscByNickname is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByUnionId

func (qs WechatUserQuerySet) OrderAscByUnionId() WechatUserQuerySet

OrderAscByUnionId is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByUpdatedAt

func (qs WechatUserQuerySet) OrderAscByUpdatedAt() WechatUserQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderAscByUserID

func (qs WechatUserQuerySet) OrderAscByUserID() WechatUserQuerySet

OrderAscByUserID is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByCity

func (qs WechatUserQuerySet) OrderDescByCity() WechatUserQuerySet

OrderDescByCity is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByCreatedAt

func (qs WechatUserQuerySet) OrderDescByCreatedAt() WechatUserQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByDeletedAt

func (qs WechatUserQuerySet) OrderDescByDeletedAt() WechatUserQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByHeadImgUrl

func (qs WechatUserQuerySet) OrderDescByHeadImgUrl() WechatUserQuerySet

OrderDescByHeadImgUrl is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByID

func (qs WechatUserQuerySet) OrderDescByID() WechatUserQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByNickname

func (qs WechatUserQuerySet) OrderDescByNickname() WechatUserQuerySet

OrderDescByNickname is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByUnionId

func (qs WechatUserQuerySet) OrderDescByUnionId() WechatUserQuerySet

OrderDescByUnionId is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByUpdatedAt

func (qs WechatUserQuerySet) OrderDescByUpdatedAt() WechatUserQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) OrderDescByUserID

func (qs WechatUserQuerySet) OrderDescByUserID() WechatUserQuerySet

OrderDescByUserID is an autogenerated method nolint: dupl

func (WechatUserQuerySet) Preload

func (qs WechatUserQuerySet) Preload(query string, args ...interface{}) WechatUserQuerySet

func (WechatUserQuerySet) PreloadUser

func (qs WechatUserQuerySet) PreloadUser() WechatUserQuerySet

PreloadUser is an autogenerated method nolint: dupl

func (WechatUserQuerySet) Select

Preload preload associations with given conditions

db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)

func (WechatUserQuerySet) UnionIdEq

func (qs WechatUserQuerySet) UnionIdEq(unionId string) WechatUserQuerySet

UnionIdEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdGt

func (qs WechatUserQuerySet) UnionIdGt(unionId string) WechatUserQuerySet

UnionIdGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdGte

func (qs WechatUserQuerySet) UnionIdGte(unionId string) WechatUserQuerySet

UnionIdGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdIn

func (qs WechatUserQuerySet) UnionIdIn(unionId ...string) WechatUserQuerySet

UnionIdIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdLike

func (qs WechatUserQuerySet) UnionIdLike(unionId string) WechatUserQuerySet

UnionIdLike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdLt

func (qs WechatUserQuerySet) UnionIdLt(unionId string) WechatUserQuerySet

UnionIdLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdLte

func (qs WechatUserQuerySet) UnionIdLte(unionId string) WechatUserQuerySet

UnionIdLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdNe

func (qs WechatUserQuerySet) UnionIdNe(unionId string) WechatUserQuerySet

UnionIdNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdNotIn

func (qs WechatUserQuerySet) UnionIdNotIn(unionId ...string) WechatUserQuerySet

UnionIdNotIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UnionIdNotlike

func (qs WechatUserQuerySet) UnionIdNotlike(unionId string) WechatUserQuerySet

UnionIdNotlike is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtEq

func (qs WechatUserQuerySet) UpdatedAtEq(updatedAt time.Time) WechatUserQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtGt

func (qs WechatUserQuerySet) UpdatedAtGt(updatedAt time.Time) WechatUserQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtGte

func (qs WechatUserQuerySet) UpdatedAtGte(updatedAt time.Time) WechatUserQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtIsNotNull

func (qs WechatUserQuerySet) UpdatedAtIsNotNull() WechatUserQuerySet

UpdatedAtIsNotNull is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtIsNull

func (qs WechatUserQuerySet) UpdatedAtIsNull() WechatUserQuerySet

UpdatedAtIsNull is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtLt

func (qs WechatUserQuerySet) UpdatedAtLt(updatedAt time.Time) WechatUserQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtLte

func (qs WechatUserQuerySet) UpdatedAtLte(updatedAt time.Time) WechatUserQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UpdatedAtNe

func (qs WechatUserQuerySet) UpdatedAtNe(updatedAt time.Time) WechatUserQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDEq

func (qs WechatUserQuerySet) UserIDEq(userID ID) WechatUserQuerySet

UserIDEq is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDGt

func (qs WechatUserQuerySet) UserIDGt(userID ID) WechatUserQuerySet

UserIDGt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDGte

func (qs WechatUserQuerySet) UserIDGte(userID ID) WechatUserQuerySet

UserIDGte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDIn

func (qs WechatUserQuerySet) UserIDIn(userID ...ID) WechatUserQuerySet

UserIDIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDLt

func (qs WechatUserQuerySet) UserIDLt(userID ID) WechatUserQuerySet

UserIDLt is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDLte

func (qs WechatUserQuerySet) UserIDLte(userID ID) WechatUserQuerySet

UserIDLte is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDNe

func (qs WechatUserQuerySet) UserIDNe(userID ID) WechatUserQuerySet

UserIDNe is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIDNotIn

func (qs WechatUserQuerySet) UserIDNotIn(userID ...ID) WechatUserQuerySet

UserIDNotIn is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIsNotNull

func (qs WechatUserQuerySet) UserIsNotNull() WechatUserQuerySet

UserIsNotNull is an autogenerated method nolint: dupl

func (WechatUserQuerySet) UserIsNull

func (qs WechatUserQuerySet) UserIsNull() WechatUserQuerySet

UserIsNull is an autogenerated method nolint: dupl

type WechatUserUpdater

type WechatUserUpdater struct {
	// contains filtered or unexported fields
}

WechatUserUpdater is an WechatUser updates manager

func NewWechatUserUpdater

func NewWechatUserUpdater(db *gorm.DB) WechatUserUpdater

NewWechatUserUpdater creates new WechatUser updater nolint: dupl

func (WechatUserUpdater) SetCity

func (u WechatUserUpdater) SetCity(city string) WechatUserUpdater

SetCity is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetCreatedAt

func (u WechatUserUpdater) SetCreatedAt(createdAt time.Time) WechatUserUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetDeletedAt

func (u WechatUserUpdater) SetDeletedAt(deletedAt *time.Time) WechatUserUpdater

SetDeletedAt is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetHeadImgUrl

func (u WechatUserUpdater) SetHeadImgUrl(headImgUrl string) WechatUserUpdater

SetHeadImgUrl is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetID

SetID is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetNickname

func (u WechatUserUpdater) SetNickname(nickname string) WechatUserUpdater

SetNickname is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetUnionId

func (u WechatUserUpdater) SetUnionId(unionId string) WechatUserUpdater

SetUnionId is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetUpdatedAt

func (u WechatUserUpdater) SetUpdatedAt(updatedAt *time.Time) WechatUserUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (WechatUserUpdater) SetUserID

func (u WechatUserUpdater) SetUserID(userID ID) WechatUserUpdater

SetUserID is an autogenerated method nolint: dupl

func (WechatUserUpdater) Update

func (u WechatUserUpdater) Update() error

Update is an autogenerated method nolint: dupl

func (WechatUserUpdater) UpdateNum

func (u WechatUserUpdater) UpdateNum() (int64, error)

UpdateNum is an autogenerated method nolint: dupl

Jump to

Keyboard shortcuts

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