entity

package
v0.0.0-...-5c487ac Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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 APIKey

type APIKey struct {
	AppID      string
	Key        string
	IsDisabled bool
	CreatedAt  time.Time
}

APIKey allows external systems to access cloud APIs enabled for the given third party app.

type APIKeyInput

type APIKeyInput struct {
	AppID      *string
	Key        *string
	IsDisabled *bool
	CreatedAt  *time.Time
}

APIKeyInput represents APIKey with all fields as optional, with some of which having default values

func (APIKeyInput) GetAppID

func (a APIKeyInput) GetAppID(defaultVal string) string

GetAppID fetches AppID for APIKeyInput with default value.

func (APIKeyInput) GetCreatedAt

func (a APIKeyInput) GetCreatedAt(defaultVal time.Time) time.Time

GetCreatedAt fetches createdAt for APIKeyInput with default value.

func (APIKeyInput) GetIsDisabled

func (a APIKeyInput) GetIsDisabled(defaultVal bool) bool

GetIsDisabled fetches isDisabled for APIKeyInput with default value.

func (APIKeyInput) GetKey

func (a APIKeyInput) GetKey(defaultVal string) string

GetKey fetches Key for APIKeyInput with default value.

type App

type App struct {
	ID        string
	Name      string
	CreatedAt time.Time
}

App represents an application owned by third party developer.

type Change

type Change struct {
	ID              string
	Title           string
	SummaryMarkdown *string
	ReleasedAt      time.Time
}

Change represents a single change in change log

type Empty

type Empty struct{}

Empty is a placeholder for an empty struct to reduce memory usage when initializing data structures, such as map with non empty key but empty value.

type SSOUser

type SSOUser struct {
	ID    string
	Email string
	Name  string
}

SSOUser represents an user of the identity provider.

type ShortLink struct {
	Alias         string
	LongLink      string
	ExpireAt      *time.Time
	CreatedBy     *User
	CreatedAt     *time.Time
	UpdatedAt     *time.Time
	OpenGraphTags metatag.OpenGraph
	TwitterTags   metatag.Twitter
}

ShortLink represents a short link.

type ShortLinkInput

type ShortLinkInput struct {
	LongLink    *string
	CustomAlias *string
	ExpireAt    *time.Time
	CreatedAt   *time.Time
	UpdatedAt   *time.Time
}

ShortLinkInput represents possible ShortLink attributes for a short link.

func (*ShortLinkInput) GetCustomAlias

func (s *ShortLinkInput) GetCustomAlias(defaultVal string) string

GetCustomAlias fetches CustomAlias for ShortLinkInput with default value.

func (s *ShortLinkInput) GetLongLink(defaultVal string) string

GetLongLink fetches LongLink for ShortLinkInput with default value.

type Toggle

type Toggle struct {
	ID        string
	IsEnabled bool
	Type      ToggleType
}

Toggle represents a controllable switch that can be turned on or off.

type ToggleType

type ToggleType string
const (
	ManualToggle     ToggleType = "manual"
	PermissionToggle ToggleType = "permission"
)

type User

type User struct {
	ID             string
	Name           string
	Email          string
	LastSignedInAt *time.Time
	CreatedAt      *time.Time
	UpdatedAt      *time.Time
}

User contains basic user information such as, user ID, name, and email.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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