write

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	UserID    string     `sqlx:"user_id" validate:"required"`
	Provider  string     `sqlx:"provider" validate:"required"`
	EncToken  string     `sqlx:"enc_token" validate:"required"`
	CreatedAt *time.Time `sqlx:"created_at" json:",omitempty"`
	UpdatedAt *time.Time `sqlx:"updated_at" json:",omitempty"`
	Has       *TokenHas  `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

Token is a mutable model for PATCH upserts (internal use only).

func (*Token) SetCreatedAt

func (m *Token) SetCreatedAt(t time.Time)

func (*Token) SetEncToken

func (m *Token) SetEncToken(v string)

func (*Token) SetProvider

func (m *Token) SetProvider(v string)

func (*Token) SetUpdatedAt

func (m *Token) SetUpdatedAt(t time.Time)

func (*Token) SetUserID

func (m *Token) SetUserID(v string)

type TokenHas

type TokenHas struct{ UserID, Provider, EncToken, CreatedAt, UpdatedAt bool }

type Tokens

type Tokens []Token

Jump to

Keyboard shortcuts

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