oauth

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenFS embed.FS
View Source
var TokenPathURI = "/v1/api/agently/user/oauth"

Functions

func DefineTokenComponent

func DefineTokenComponent(ctx context.Context, srv *datly.Service) error

Types

type TokenInput

type TokenInput struct {
	Id  string         `parameter:",kind=query,in=user_id" predicate:"equal,group=0,t,user_id"`
	Has *TokenInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*TokenInput) EmbedFS

func (i *TokenInput) EmbedFS() *embed.FS

type TokenInputHas

type TokenInputHas struct {
	Id bool
}

type TokenOutput

type TokenOutput struct {
	response.Status `parameter:",kind=output,in=status" json:",omitempty"`
	Data            []*TokenView     `parameter:",kind=output,in=view" view:"token,batch=10000,relationalConcurrency=1" sql:"uri=token/token.sql"`
	Metrics         response.Metrics `parameter:",kind=output,in=metrics"`
}

type TokenView

type TokenView struct {
	UserId    string     `sqlx:"user_id"`
	Provider  string     `sqlx:"provider"`
	EncToken  string     `sqlx:"enc_token"`
	CreatedAt time.Time  `sqlx:"created_at"`
	UpdatedAt *time.Time `sqlx:"updated_at"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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