repository

package
v0.0.0-...-833fa1d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	repository.Repository
}

func New

func New() *Repository

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, account *model.AccountSocial) (uint64, error)

Create new account in the database

func (*Repository) Get

Get account by ID

func (*Repository) List

func (r *Repository) List(ctx context.Context, filter *socialauth.Filter) ([]*model.AccountSocial, error)

List accounts by filter

func (*Repository) SetToken

func (r *Repository) SetToken(ctx context.Context, name string, id uint64, token *elogin.Token) error

SetToken saves the token to the social account

func (*Repository) Token

func (r *Repository) Token(ctx context.Context, name string, id uint64) (*elogin.Token, error)

Token returns the token by social account ID

func (*Repository) Update

func (r *Repository) Update(ctx context.Context, id uint64, account *model.AccountSocial) error

Update account in the database

Jump to

Keyboard shortcuts

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