api

package
v0.0.0-...-ff79fe2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Overview

Package api contains data and types about the users API. TODO: this is a temporary package and will be moved to a better one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID                 int64      `json:"id" yaml:"id"`
	Base64PasswordHash *string    `json:"password_hash,omitempty" yaml:"passwordHash,omitempty"`
	Base64Salt         *string    `json:"salt,omitempty" yaml:"salt,omitempty"`
	CreatedAt          time.Time  `json:"created_at" yaml:"createdAt"`
	UpdatedAt          *time.Time `json:"updated_at,omitempty" yaml:"updatedAt,omitempty"`
	DeletedAt          *time.Time `json:"deleted_at,omitempty" yaml:"deletedAt,omitempty"`
	Username           string     `json:"username" yaml:"username"`
	DisplayName        string     `json:"display_name" yaml:"display_name"`
	Email              *string    `json:"email,omitempty" yaml:"email,omitempty"`
	RegistrationIP     *net.IP    `json:"registration_ip,omitempty" yaml:"registrationIP,omitempty"`
	Bio                *string    `json:"bio,omitempty" yaml:"bio,omitempty"`
	Birthday           *time.Time `json:"birthday,omitempty" yaml:"birthday,omitempty"`
}

func (*User) Clone

func (u *User) Clone() *User

Jump to

Keyboard shortcuts

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