Documentation ¶
Index ¶
- type App
- func (a *App) Dislike(ctx context.Context, uuid, targetUUID string) error
- func (a *App) GetAllChats(ctx context.Context, uuid string) ([]*models.Profile, error)
- func (a *App) GetConfig(ctx context.Context, uuid string) (*models.Config, error)
- func (a *App) GetDialog(ctx context.Context, client, target string) *chat.Hub
- func (a *App) GetMatches(ctx context.Context, uuid string, count int64) ([]*models.Profile, error)
- func (a *App) GetProfiles(ctx context.Context, uuids []string) ([]*models.Profile, error)
- func (a *App) GetRegions(ctx context.Context) ([]*models.Region, error)
- func (a *App) Like(ctx context.Context, uuid, targetUUID string, super bool) error
- func (a *App) ListDislikedProfiles(ctx context.Context, uuid string, limit, offset int64) ([]*models.Profile, error)
- func (a *App) ListLikedProfiles(ctx context.Context, uuid string, limit, offset int64) ([]*models.Profile, error)
- func (a *App) SaveConfig(ctx context.Context, config *models.Config) error
- type Chat
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetAllChats ¶
func (*App) GetMatches ¶
func (*App) GetProfiles ¶
func (*App) ListDislikedProfiles ¶
func (*App) ListLikedProfiles ¶
type Storage ¶
type Storage interface { SaveConfig(ctx context.Context, config *models.Config) error GetConfig(ctx context.Context, uuid string) (*models.Config, error) GetRegions(ctx context.Context) ([]*models.Region, error) UpsertRelation(ctx context.Context, relation *models.Relation) error ListRelated(ctx context.Context, uuid string, relation storage.Relation, limit, offset int64) ([]*models.Profile, error) ListMatches(ctx context.Context, uuid string, count int64) ([]*models.Profile, error) GetProfiles(ctx context.Context, uuids []string) ([]*models.Profile, error) }
Click to show internal directories.
Click to hide internal directories.