client

package
v0.0.0-...-42c4776 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: 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 AccessToken

type AccessToken interface {
	Jwt() string
	ExpiresAt() int64
}

func NewAccessToken

func NewAccessToken(jwt string, expiresAt int64) AccessToken

type Client

type Client interface {
	Id() int
	Secret() string
	CreatedAt() time.Time
	UpdatedAt() sql.NullTime
}

func NewClient

func NewClient(
	id int,
	secret string,
	createdAt time.Time,
	updatedAt sql.NullTime,
) Client

type Repository

type Repository interface {
	Find(ctx context.Context, id int, secret string) (Client, error)
}

Jump to

Keyboard shortcuts

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