django_models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Seperator string = ":"
	Salt      string = "django.core.signing"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUser

type AuthUser struct {
	bun.BaseModel `bun:"table:auth_user"`

	Id         int64     `json:"id"`
	Password   string    `json:"password"`
	LastLogin  time.Time `json:"last_login"`
	Username   string    `json:"username"`
	FirstName  string    `json:"first_name"`
	LastName   string    `json:"last_name"`
	Email      string    `json:"email"`
	IsStaff    bool      `json:"is_staff"`
	IsActive   bool      `json:"is_active"`
	DateJoined time.Time `json:"date_joined"`
}

type Session

type Session struct {
	bun.BaseModel `bun:"table:django_session"`

	SessionKey  string    `bun:"session_key,pk"`
	SessionData string    `bun:"session_data"`
	ExpireDate  time.Time `bun:"expire_date"`
}

func (*Session) CompressObject

func (s *Session) CompressObject(uncompressedObject []byte) []byte

func (*Session) CreateKey

func (s *Session) CreateKey() string

func (*Session) EncodeObject

func (s *Session) EncodeObject(objectToEncode []byte) string

func (*Session) SignObject

func (s *Session) SignObject(data []byte) string

Jump to

Keyboard shortcuts

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