db

package
v0.0.0-...-f1c6d0e Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTables

func CreateTables(c context.Context, db app.Database, schema string) error

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(db app.Database, schema string) *DB

func (*DB) AddUserEmailValidationTask

func (d *DB) AddUserEmailValidationTask(c context.Context, userID, token string) error

func (*DB) DeleteMedia

func (d *DB) DeleteMedia(c context.Context, id string) error

func (*DB) DoesCharacterNeedRescope

func (d *DB) DoesCharacterNeedRescope(c context.Context, charID int32) (bool, error)

func (*DB) FetchLatestPublicTags

func (d *DB) FetchLatestPublicTags(c context.Context, display []data.Tag, n int) ([]LatestPublicTagsResult, error)

func (*DB) FetchMostRecentlyUpdatedThreads

func (d *DB) FetchMostRecentlyUpdatedThreads(c context.Context, t data.Tag, n, page int) ([]RecentlyUpdatedThreadResult, error)

func (*DB) FetchPaginatedMessagesInThread

func (d *DB) FetchPaginatedMessagesInThread(c context.Context, id string, n, page int) (ThreadMessages, error)

func (*DB) GetAlliance

func (d *DB) GetAlliance(c context.Context) (int32, error)

func (*DB) GetAllianceIcon128

func (d *DB) GetAllianceIcon128(c context.Context, aID int32) (image.Image, time.Time, error)

func (*DB) GetAllianceIcon64

func (d *DB) GetAllianceIcon64(c context.Context, aID int32) (image.Image, time.Time, error)

func (*DB) GetAuthoritativeCharacter

func (d *DB) GetAuthoritativeCharacter(c context.Context) (int32, error)

func (*DB) GetCharacterPortrait128

func (d *DB) GetCharacterPortrait128(c context.Context, charID int32) (image.Image, time.Time, error)

func (*DB) GetCharacterPortrait256

func (d *DB) GetCharacterPortrait256(c context.Context, charID int32) (image.Image, time.Time, error)

func (*DB) GetCharacterPortrait512

func (d *DB) GetCharacterPortrait512(c context.Context, charID int32) (image.Image, time.Time, error)

func (*DB) GetCharacterPortrait64

func (d *DB) GetCharacterPortrait64(c context.Context, charID int32) (image.Image, time.Time, error)

func (*DB) GetCorpIcon128

func (d *DB) GetCorpIcon128(c context.Context, corpID int32) (image.Image, time.Time, error)

func (*DB) GetCorpIcon256

func (d *DB) GetCorpIcon256(c context.Context, corpID int32) (image.Image, time.Time, error)

func (*DB) GetCorpIcon64

func (d *DB) GetCorpIcon64(c context.Context, corpID int32) (image.Image, time.Time, error)

func (*DB) GetCorpName

func (d *DB) GetCorpName() string

func (*DB) GetCorporationManaged

func (d *DB) GetCorporationManaged(c context.Context) (int32, error)

func (*DB) GetEnabledFeatureIDs

func (d *DB) GetEnabledFeatureIDs(c context.Context) (ids []string, err error)

func (*DB) GetEveCharactersForUser

func (d *DB) GetEveCharactersForUser(c context.Context, userID string) (ids []int32, shouldRescope []bool, err error)

func (*DB) GetEvePublicKeys

func (d *DB) GetEvePublicKeys(c context.Context) (*esi.OAuthKeysMetadata, error)

func (*DB) GetEveToken

func (d *DB) GetEveToken(c context.Context, charID int32) (*esi.Tokens, error)

func (*DB) GetExecutor

func (d *DB) GetExecutor(c context.Context) (int32, error)

func (*DB) GetExpiringEveTokensWithin

func (d *DB) GetExpiringEveTokensWithin(c context.Context, period time.Duration) ([]*UserToken, error)

func (*DB) GetMedia

func (d *DB) GetMedia(c context.Context, id string) (name, contentType string, b []byte, err error)

func (*DB) HasCharacterForUser

func (d *DB) HasCharacterForUser(c context.Context, userID string, charID int32) (bool, error)

func (*DB) InsertMedia

func (d *DB) InsertMedia(c context.Context, name, contentType string, media []byte) (string, error)

func (*DB) IsUserVerified

func (d *DB) IsUserVerified(c context.Context, userID string) (bool, error)

func (*DB) MarkAllTokensNeedRescope

func (d *DB) MarkAllTokensNeedRescope(c context.Context) error

func (*DB) MarkUserValidationEmailSent

func (d *DB) MarkUserValidationEmailSent(c context.Context, userID string) error

func (*DB) MarkUserVerified

func (d *DB) MarkUserVerified(c context.Context, token string) error

func (*DB) SetAlliance

func (d *DB) SetAlliance(c context.Context, v int32) error

func (*DB) SetAllianceIcon128

func (d *DB) SetAllianceIcon128(c context.Context, aID int32, i image.Image, expires time.Time) error

func (*DB) SetAllianceIcon64

func (d *DB) SetAllianceIcon64(c context.Context, aID int32, i image.Image, expires time.Time) error

func (*DB) SetAuthoritativeCharacter

func (d *DB) SetAuthoritativeCharacter(c context.Context, v int32) error

func (*DB) SetCharacterPortrait128

func (d *DB) SetCharacterPortrait128(c context.Context, charID int32, i image.Image, expires time.Time) error

func (*DB) SetCharacterPortrait256

func (d *DB) SetCharacterPortrait256(c context.Context, charID int32, i image.Image, expires time.Time) error

func (*DB) SetCharacterPortrait512

func (d *DB) SetCharacterPortrait512(c context.Context, charID int32, i image.Image, expires time.Time) error

func (*DB) SetCharacterPortrait64

func (d *DB) SetCharacterPortrait64(c context.Context, charID int32, i image.Image, expires time.Time) error

func (*DB) SetCorpIcon128

func (d *DB) SetCorpIcon128(c context.Context, corpID int32, i image.Image, expires time.Time) error

func (*DB) SetCorpIcon256

func (d *DB) SetCorpIcon256(c context.Context, corpID int32, i image.Image, expires time.Time) error

func (*DB) SetCorpIcon64

func (d *DB) SetCorpIcon64(c context.Context, corpID int32, i image.Image, expires time.Time) error

func (*DB) SetCorporationManaged

func (d *DB) SetCorporationManaged(c context.Context, v int32) error

func (*DB) SetEvePublicKeys

func (d *DB) SetEvePublicKeys(c context.Context, o esi.OAuthKeysMetadata) error

func (*DB) SetEveTokens

func (d *DB) SetEveTokens(c context.Context, userID string, t *esi.Tokens) error

func (*DB) SetExecutor

func (d *DB) SetExecutor(c context.Context, v int32) error

func (*DB) SetFeaturesEnabledDisabled

func (d *DB) SetFeaturesEnabledDisabled(c context.Context, enableIDs, disableIDs []string) error

type LatestPublicTagsResult

type LatestPublicTagsResult struct {
	T        vocab.Type
	Received time.Time
}

type RecentlyUpdatedThreadResult

type RecentlyUpdatedThreadResult struct {
	First      vocab.Type
	MostRecent vocab.Type
}

type ThreadMessages

type ThreadMessages struct {
	Messages []vocab.Type
}

type UserToken

type UserToken struct {
	UserID string
	T      *esi.Tokens
}

Jump to

Keyboard shortcuts

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