models

package
v0.0.0-...-b4b79d4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 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 UserSessionV1

type UserSessionV1 struct {
	Id           int64   `json:"id"`
	Created      UtcTime `json:"created"`
	LastActivity UtcTime `json:"lastActivity"`
	LastIp       string  `json:"lastIp"`
	LastAgent    string  `json:"lastAgent"`
}

type UserSessionsV1

type UserSessionsV1 struct {
	Active int              `json:"active"`
	List   []*UserSessionV1 `json:"list,omitempty"`
}

Schema: userSessions.v1

type UtcTime

type UtcTime time.Time

func (UtcTime) MarshalJSON

func (t UtcTime) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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