storage

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenRewriteDataBase

type TokenRewriteDataBase struct {
	// contains filtered or unexported fields
}

func NewTokenRewriteDataBase

func NewTokenRewriteDataBase(dataSourceName string) (*TokenRewriteDataBase, error)

func (*TokenRewriteDataBase) UpsertDevice

func (d *TokenRewriteDataBase) UpsertDevice(
	ctx context.Context, userID, deviceID, displayName string,
) error

func (*TokenRewriteDataBase) UpsertToken

func (d *TokenRewriteDataBase) UpsertToken(
	ctx context.Context, id int64, userID, deviceID, token string,
) error

func (*TokenRewriteDataBase) UpsertUser

func (d *TokenRewriteDataBase) UpsertUser(
	ctx context.Context, userID string,
) error

Jump to

Keyboard shortcuts

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