Documentation ¶
Index ¶
- func NewSessionStoreWithDefaults() *sessions.CookieStore
- type Postgres
- type PostgresConfig
- type Service
- func (service Service) GetCurrentUser(ctx context.Context) (*models.User, error)
- func (service Service) LogIn(ctx context.Context, input graphql.UserInput) (*models.User, error)
- func (service Service) LogOut(ctx context.Context) (*bool, error)
- func (service Service) SignUp(ctx context.Context, input graphql.UserInput) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionStoreWithDefaults ¶
func NewSessionStoreWithDefaults() *sessions.CookieStore
Types ¶
type Postgres ¶
func NewPostgres ¶
func NewPostgres(config PostgresConfig) (*Postgres, error)
New creates a new Postgres
func NewPostgresWithDefaults ¶
func (*Postgres) ClearTables ¶
func (*Postgres) NewMigration ¶
NewMigration runs another migration
func (*Postgres) RunMigration ¶
RunMigration runs migrations
type PostgresConfig ¶
Config is configuration of the
type Service ¶
type Service struct { Postgres *Postgres SessionStore *sessions.CookieStore }
func NewWithDefaults ¶
func (Service) GetCurrentUser ¶
Click to show internal directories.
Click to hide internal directories.