models

package
v0.0.0-...-1291c50 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Data *DataObject `json:"data,omitempty"`
}

Data ;

type DataObject

type DataObject struct {
	Kind             string      `json:"kind,omitempty"`
	Fields           string      `json:"fields,omitempty"`
	ETag             string      `json:"etag,omitempty"`
	CurrentItemCount int         `json:"currentItemCount,omitempty"`
	ItemsPerPage     int         `json:"itemPerPage,omitempty"`
	StartIndex       int         `json:"startIndex,omitempty"`
	TotalItems       int         `json:"totalItems,omitempty"`
	PageIndex        int         `json:"pageIndex,omitempty"`
	TotalPages       int         `json:"totalPages,omitempty"`
	PageLinkTemplate string      `json:"pageLinkTemplate,omitempty"`
	Next             interface{} `json:"next,omitempty"`
	NextLink         string      `json:"nextLink,omitempty"`
	Previous         interface{} `json:"previous,omitempty"`
	PreviousLink     string      `json:"previousLink,omitempty"`
	Self             interface{} `json:"self,omitempty"`
	SelfLink         string      `json:"selfLink,omitempty"`
	Edit             interface{} `json:"edit,omitempty"`
	EditLink         string      `json:"editLink,omitempty"`
	Items            interface{} `json:"items,omitempty"`
	*Player          `json:",omitempty"`
}

DataObject ;

type Error

type Error struct {
	Error *ErrorObject `json:"error,omitempty"`
}

Error :

type ErrorObject

type ErrorObject struct {
	Code    int            `json:"code"`
	Message string         `json:"message"`
	Errors  []ErrorsObject `json:"errors,omitempty"`
}

ErrorObject :

type ErrorParsing

type ErrorParsing struct {
	Type       gin.ErrorType
	Metadata   interface{}
	Error      error
	StatusCode int
}

ErrorParsing :

type ErrorsObject

type ErrorsObject struct {
	Domain       string `json:"domain,omitempty"`
	Reason       string `json:"reason,omitempty"`
	Message      string `json:"message,omitempty"`
	ExtendedHelp string `json:"extendedHelp,omitempty"`
	SendReport   string `json:"sendReport,omitempty"`
}

ErrorsObject :

type Pagination

type Pagination struct {
	StartIndex       *int
	ItemsPerPage     *int
	TotalItems       *int
	CurrentItemCount int
	Items            interface{}
}

Pagination :

type Player

type Player struct {
	ID             *string    `json:"id" gorm:"column:id" structs:"id"`
	UserName       *string    `json:"userName" gorm:"column:user_name" structs:"user_name"`
	PassHash       *string    `json:"-" gorm:"column:pass_hash" structs:"-"`
	EmailAddress   *string    `json:"emailAddress" gorm:"column:email" structs:"email"`
	DisplayName    *string    `json:"displayName" gorm:"column:display_name" structs:"display_name"`
	AvatarURL      *string    `json:"avatarUrl" gorm:"column:avatar_url" structs:"avatar_url"`
	AvatarBlurHash *string    `json:"avatarBlurHash" gorm:"column:avatar_blur_hash" structs:"avatar_blur_hash"`
	CreatedAt      *time.Time `json:"createdAt" gorm:"column:created_at" structs:"-"`
	UpdatedAt      *time.Time `json:"updatedAt" gorm:"column:updated_at" structs:"-"`
	DeletedAt      *time.Time `json:"deletedAt" gorm:"column:deleted_at" structs:"-"`
}

Player :

type PlayerAuthentication

type PlayerAuthentication struct {
	UserName string `json:"userName"`
	Password string `json:"password"`
}

PlayerAuthentication :

type PlayerRegistration

type PlayerRegistration struct {
	UserName        string `json:"userName" binding:"required,min=3,max=25"`
	Password        string `json:"password" binding:"required,min=6"`
	ConfirmPassword string `json:"confirmPassword" binding:"required,min=6"`
}

PlayerRegistration :

type Result

type Result struct {
	APIVersion *string      `json:"apiVersion,omitempty"`
	Context    *string      `json:"context,omitempty"`
	ID         *string      `json:"id,omitempty"`
	Method     *string      `json:"method,omitempty"`
	Params     *interface{} `json:"params,omitempty"`
	Data
	Error
}

Result :

type Token

type Token struct {
	Token     *string `json:"token"`
	ExpiresOn int64   `json:"expiresOn"`
	Type      string  `json:"type"`
}

Token ;

Jump to

Keyboard shortcuts

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