token

package
v0.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(db *bun.DB) *Service

func (*Service) CreateToken

func (r *Service) CreateToken(ctx context.Context, data *api.CreateTokenRequest) (string, error)

func (*Service) DeleteToken

func (r *Service) DeleteToken(ctx context.Context, tokenID string) error

func (*Service) ListTokens

func (r *Service) ListTokens(ctx context.Context) ([]*api.ListTokensResponse, error)

Jump to

Keyboard shortcuts

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