repository

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenRepository

type AccessTokenRepository struct {
	Account *account.Account
}

func NewAccessTokenRepository

func NewAccessTokenRepository(a *account.Account) *AccessTokenRepository

func (*AccessTokenRepository) AccountID

func (repo *AccessTokenRepository) AccountID() account.ID

func (*AccessTokenRepository) List

func (*AccessTokenRepository) Record

func (repo *AccessTokenRepository) Record(ctx context.Context, id datatypes.SFID, desc string, expiresAt time.Time) error

func (AccessTokenRepository) RuntimeDoc

func (v AccessTokenRepository) RuntimeDoc(names ...string) ([]string, bool)

type AccountExchanger

type AccountExchanger struct {
	*AccountRepository
}

func NewAccountExchanger

func NewAccountExchanger() *AccountExchanger

func (AccountExchanger) Exchange

func (e AccountExchanger) Exchange(ctx context.Context, from string, user auth.UserInfo, createIfNotExists bool) ([]string, error)

func (AccountExchanger) RuntimeDoc

func (v AccountExchanger) RuntimeDoc(names ...string) ([]string, bool)

type AccountRepository

type AccountRepository struct {
}

func NewAccountRepository

func NewAccountRepository() *AccountRepository

func (*AccountRepository) Add

func (repo *AccountRepository) Add(ctx context.Context, accountType account.Type) (*account.Account, error)

func (*AccountRepository) GetUser

func (repo *AccountRepository) GetUser(ctx context.Context, accountID account.ID) (*account.User, error)

func (*AccountRepository) ListUserAccount

func (repo *AccountRepository) ListUserAccount(ctx context.Context, params account.UserQueryParams) (*account.UserDataList, error)

func (*AccountRepository) PutRobot

func (repo *AccountRepository) PutRobot(ctx context.Context, robotInfo account.RobotInfo, accountID account.ID) (*account.Robot, error)

func (*AccountRepository) PutUser

func (repo *AccountRepository) PutUser(ctx context.Context, userInfo account.UserInfo, accountID account.ID) (*account.User, error)

func (*AccountRepository) RangeIdentity

func (repo *AccountRepository) RangeIdentity(ctx context.Context, accountIDs []account.ID, each func(i *account.Identity) error) error

Jump to

Keyboard shortcuts

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