shared

package
v0.0.0-...-18e4d4a Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ID      string    `json:"address_id" mysql:"id"`
	Street1 string    `json:"street1"`
	Street2 string    `json:"street2,omitempty"`
	City    string    `json:"city"`
	State   string    `json:"state"`
	Country string    `json:"country"`
	Zip     string    `json:"zip"`
	MTime   time.Time `json:"mtime"`
	CTime   time.Time `json:"ctime"`
}

type BasicAuth

type BasicAuth struct {
	Name string `json:"username" mysql:"name"`
	Pass string `json:"password" mysql:"password"`
	Salt string `json:"-" mysql:"salt"`
}

type CID

type CID string

type Contact

type Contact struct {
	ID        string    `json:"contact_id"`
	FirstName string    `json:"first_name,omitempty"`
	LastName  string    `json:"last_name,omitempty"`
	User      *User     `json:"user"`
	BillTo    *Address  `json:"bill_to,omitempty"`
	ShipTo    *Address  `json:"ship_to,omitempty"`
	MTime     time.Time `json:"mtime"`
	CTime     time.Time `json:"ctime"`
}

type User

type User struct {
	ID           string     `json:"user_id" mysql:"id"`
	Name         string     `json:"username" mysql:"name"`
	MTime        time.Time  `json:"mtime" mysql:"mtime"`
	CTime        time.Time  `json:"ctime" mysql:"ctime"`
	DTime        *time.Time `json:"dtime,omitempty" mysql:"dtime"`
	LoginSuccess *time.Time `json:"login_success,omitempty" mysql:"mtime"`
	FailureCount uint8      `json:"failure_count,omitempty" mysql:"failure_count"`
}

Jump to

Keyboard shortcuts

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