repos

package
v0.0.0-...-2eb00bf Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDSN

func BuildDSN() string

Types

type Repository

type Repository interface {
	UserRepository
	TokenRepository
}

type TokenRepository

type TokenRepository interface {
	GetTokenByUserId(context.Context, string) (*models.Token, error)
	SaveAccessToken(context.Context, string, *oauth2.Token) error
	UpdateAccessToken(context.Context, string, *oauth2.Token) error
}

type UserRepository

type UserRepository interface {
	CreateUser(context.Context, *models.User) error
	GetUserByID(context.Context, string) (*models.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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