sessions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Code generated by Ice-cream-maker DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	TableNameWithTenant = tableNameWithTenant()
)

Functions

This section is empty.

Types

type ClientSessionPayload

type ClientSessionPayload struct {
	ExpiresAt    int64  `json:"exp,omitempty"`           // expiration_time
	IssuedAt     int64  `json:"iat,omitempty"`           // issued_at_time
	Uuid         string `json:"uuid,omitempty"`          // token_uuid
	ClusterUuid  string `json:"cluster-uuid,omitempty"`  // cluster_uuid
	TenantHash   string `json:"tenant-hash,omitempty"`   // TenantHash
	PollInterval int    `json:"poll-interval,omitempty"` // config_poll_interval
	Loglevel     string `json:"log-level,omitempty"`     // config_log_level
}

func (ClientSessionPayload) Valid

func (claims ClientSessionPayload) Valid() error

func (ClientSessionPayload) VerifyExpiresAt

func (claims ClientSessionPayload) VerifyExpiresAt(cmp int64, req bool) bool

func (ClientSessionPayload) VerifyIssuedAt

func (claims ClientSessionPayload) VerifyIssuedAt(cmp int64, req bool) bool

type Scanner

type Scanner interface {
	Scan(dest ...interface{}) error
}

type Session

type Session struct {
	ID             int64            `column:"id"              json:"id,omitempty"`   // pk
	Uuid           string           `column:"uuid"            json:"uuid,omitempty"` // uuid
	ClusterUuid    string           `column:"cluster_uuid"    json:"cluster_uuid"`
	Token          string           `column:"token"           json:"token"`
	IssuedAtTime   vanilla.NullTime `column:"issued_at_time"  json:"issued_at_time"    swaggertype:"object"`
	ExpirationTime vanilla.NullTime `column:"expiration_time" json:"expiration_time"   swaggertype:"object"`
	Created        time.Time        `column:"created"         json:"created,omitempty"`
	Updated        vanilla.NullTime `column:"updated"         json:"updated,omitempty" swaggertype:"object"`
	Deleted        vanilla.NullTime `column:"deleted"         json:"deleted,omitempty" swaggertype:"object"`
}

func (Session) ColumnNames

func (Session) ColumnNames() []string

func (*Session) Ptrs

func (row *Session) Ptrs() []interface{}

func (*Session) Scan

func (row *Session) Scan(scanner Scanner) error

func (Session) TableName

func (Session) TableName() string

func (Session) Values

func (row Session) Values() []interface{}

type Status

type Status struct {
	Alive      bool `json:"alive"`
	Rebouncing bool `json:"rebouncing"`
}

Jump to

Keyboard shortcuts

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