Documentation ¶
Index ¶
- Variables
- func InitDB(dsn string) (*sql.DB, error)
- type CreateEveCharacterParams
- type CreateMailParams
- type MailLabelParams
- type Storage
- func (r *Storage) CreateEveCategory(ctx context.Context, id int32, name string, is_published bool) (*model.EveCategory, error)
- func (r *Storage) CreateEveCharacter(ctx context.Context, arg CreateEveCharacterParams) error
- func (r *Storage) CreateEveConstellation(ctx context.Context, id, eve_region_id int32, name string) error
- func (r *Storage) CreateEveEntity(ctx context.Context, id int32, name string, category model.EveEntityCategory) (*model.EveEntity, error)
- func (r *Storage) CreateEveGroup(ctx context.Context, id, eve_category_id int32, name string, is_published bool) error
- func (r *Storage) CreateEveRace(ctx context.Context, id int32, description, name string) (*model.EveRace, error)
- func (r *Storage) CreateEveRegion(ctx context.Context, description string, id int32, name string) (*model.EveRegion, error)
- func (r *Storage) CreateEveSolarSystem(ctx context.Context, id int32, eve_constellation_id int32, name string, ...) error
- func (r *Storage) CreateEveType(ctx context.Context, id int32, description string, eve_group_id int32, ...) error
- func (r *Storage) CreateMail(ctx context.Context, arg CreateMailParams) (int64, error)
- func (r *Storage) CreateMailList(ctx context.Context, characterID, mailListID int32) error
- func (r *Storage) DeleteDictEntry(ctx context.Context, key string) error
- func (r *Storage) DeleteEveCharacter(ctx context.Context, characterID int32) error
- func (r *Storage) DeleteMail(ctx context.Context, characterID, mailID int32) error
- func (r *Storage) DeleteMyCharacter(ctx context.Context, characterID int32) error
- func (r *Storage) DeleteObsoleteMailLabels(ctx context.Context, characterID int32) error
- func (r *Storage) DeleteObsoleteMailLists(ctx context.Context, characterID int32) error
- func (r *Storage) GetDictEntry(ctx context.Context, key string) ([]byte, error)
- func (r *Storage) GetEveCategory(ctx context.Context, id int32) (*model.EveCategory, error)
- func (r *Storage) GetEveCharacter(ctx context.Context, characterID int32) (*model.EveCharacter, error)
- func (r *Storage) GetEveConstellation(ctx context.Context, id int32) (*model.EveConstellation, error)
- func (r *Storage) GetEveEntity(ctx context.Context, id int32) (*model.EveEntity, error)
- func (r *Storage) GetEveGroup(ctx context.Context, id int32) (*model.EveGroup, error)
- func (r *Storage) GetEveRace(ctx context.Context, id int32) (*model.EveRace, error)
- func (r *Storage) GetEveRegion(ctx context.Context, id int32) (*model.EveRegion, error)
- func (r *Storage) GetEveSolarSystem(ctx context.Context, id int32) (*model.EveSolarSystem, error)
- func (r *Storage) GetEveType(ctx context.Context, id int32) (*model.EveType, error)
- func (r *Storage) GetFirstMyCharacter(ctx context.Context) (model.MyCharacter, error)
- func (r *Storage) GetMail(ctx context.Context, characterID, mailID int32) (model.Mail, error)
- func (r *Storage) GetMailLabel(ctx context.Context, characterID, labelID int32) (*model.MailLabel, error)
- func (r *Storage) GetMailLabelUnreadCounts(ctx context.Context, characterID int32) (map[int32]int, error)
- func (r *Storage) GetMailListUnreadCounts(ctx context.Context, characterID int32) (map[int32]int, error)
- func (r *Storage) GetMailUnreadCount(ctx context.Context, characterID int32) (int, error)
- func (r *Storage) GetMyCharacter(ctx context.Context, characterID int32) (model.MyCharacter, error)
- func (r *Storage) GetOrCreateEveEntity(ctx context.Context, id int32, name string, category model.EveEntityCategory) (*model.EveEntity, error)
- func (r *Storage) GetOrCreateMailLabel(ctx context.Context, arg MailLabelParams) (*model.MailLabel, error)
- func (r *Storage) GetToken(ctx context.Context, characterID int32) (model.Token, error)
- func (r *Storage) ListEveCharacterIDs(ctx context.Context) ([]int32, error)
- func (r *Storage) ListEveEntitiesByName(ctx context.Context, name string) ([]*model.EveEntity, error)
- func (r *Storage) ListEveEntitiesByPartialName(ctx context.Context, partial string) ([]*model.EveEntity, error)
- func (r *Storage) ListEveEntityByNameAndCategory(ctx context.Context, name string, category model.EveEntityCategory) ([]*model.EveEntity, error)
- func (r *Storage) ListEveEntityIDs(ctx context.Context) ([]int32, error)
- func (r *Storage) ListMailIDs(ctx context.Context, characterID int32) ([]int32, error)
- func (r *Storage) ListMailIDsForLabelOrdered(ctx context.Context, characterID int32, labelID int32) ([]int32, error)
- func (r *Storage) ListMailIDsForListOrdered(ctx context.Context, characterID int32, listID int32) ([]int32, error)
- func (r *Storage) ListMailLabelsOrdered(ctx context.Context, characterID int32) ([]*model.MailLabel, error)
- func (r *Storage) ListMailListsOrdered(ctx context.Context, characterID int32) ([]*model.EveEntity, error)
- func (r *Storage) ListMyCharacterIDs(ctx context.Context) ([]int32, error)
- func (r *Storage) ListMyCharacters(ctx context.Context) ([]model.MyCharacterShort, error)
- func (r *Storage) MissingEveEntityIDs(ctx context.Context, ids []int32) (*set.Set[int32], error)
- func (r *Storage) SetDictEntry(ctx context.Context, key string, bb []byte) error
- func (r *Storage) UpdateEveCharacter(ctx context.Context, c *model.EveCharacter) error
- func (r *Storage) UpdateMail(ctx context.Context, characterID int32, mailPK int64, isRead bool, ...) error
- func (r *Storage) UpdateOrCreateEveEntity(ctx context.Context, id int32, name string, category model.EveEntityCategory) (*model.EveEntity, error)
- func (r *Storage) UpdateOrCreateMailLabel(ctx context.Context, arg MailLabelParams) (*model.MailLabel, error)
- func (r *Storage) UpdateOrCreateMyCharacter(ctx context.Context, c *model.MyCharacter) error
- func (r *Storage) UpdateOrCreateToken(ctx context.Context, t *model.Token) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("object not found")
Functions ¶
Types ¶
type CreateMailParams ¶
type MailLabelParams ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateEveCategory ¶
func (*Storage) CreateEveCharacter ¶
func (r *Storage) CreateEveCharacter(ctx context.Context, arg CreateEveCharacterParams) error
func (*Storage) CreateEveConstellation ¶
func (*Storage) CreateEveEntity ¶
func (*Storage) CreateEveGroup ¶
func (*Storage) CreateEveRace ¶
func (*Storage) CreateEveRegion ¶
func (*Storage) CreateEveSolarSystem ¶
func (*Storage) CreateEveType ¶
func (*Storage) CreateMail ¶
func (*Storage) CreateMailList ¶
func (*Storage) DeleteDictEntry ¶
func (*Storage) DeleteEveCharacter ¶
func (*Storage) DeleteMail ¶
func (*Storage) DeleteMyCharacter ¶
func (*Storage) DeleteObsoleteMailLabels ¶
func (*Storage) DeleteObsoleteMailLists ¶
func (*Storage) GetDictEntry ¶
func (*Storage) GetEveCategory ¶
func (*Storage) GetEveCharacter ¶
func (*Storage) GetEveConstellation ¶
func (*Storage) GetEveEntity ¶
func (*Storage) GetEveGroup ¶
func (*Storage) GetEveRace ¶
func (*Storage) GetEveRegion ¶
func (*Storage) GetEveSolarSystem ¶
func (*Storage) GetEveType ¶
func (*Storage) GetFirstMyCharacter ¶
func (*Storage) GetMailLabel ¶
func (*Storage) GetMailLabelUnreadCounts ¶
func (*Storage) GetMailListUnreadCounts ¶
func (*Storage) GetMailUnreadCount ¶
func (*Storage) GetMyCharacter ¶
func (*Storage) GetOrCreateEveEntity ¶
func (*Storage) GetOrCreateMailLabel ¶
func (*Storage) ListEveCharacterIDs ¶
func (*Storage) ListEveEntitiesByName ¶
func (*Storage) ListEveEntitiesByPartialName ¶
func (*Storage) ListEveEntityByNameAndCategory ¶
func (*Storage) ListEveEntityIDs ¶
func (*Storage) ListMailIDs ¶
func (*Storage) ListMailIDsForLabelOrdered ¶
func (r *Storage) ListMailIDsForLabelOrdered(ctx context.Context, characterID int32, labelID int32) ([]int32, error)
ListMailsForLabel returns a character's mails for a label in descending order by timestamp. Return mails for all labels, when labelID = 0
func (*Storage) ListMailIDsForListOrdered ¶
func (*Storage) ListMailLabelsOrdered ¶
func (*Storage) ListMailListsOrdered ¶
func (*Storage) ListMyCharacterIDs ¶
func (*Storage) ListMyCharacters ¶
func (*Storage) MissingEveEntityIDs ¶
func (*Storage) SetDictEntry ¶
func (*Storage) UpdateEveCharacter ¶
func (*Storage) UpdateMail ¶
func (*Storage) UpdateOrCreateEveEntity ¶
func (*Storage) UpdateOrCreateMailLabel ¶
func (*Storage) UpdateOrCreateMyCharacter ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.