session

package
v0.2.48 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionFS embed.FS
View Source
var SessionPathURI = "/v1/api/agently/user/session"

Functions

func DefineSessionComponent

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

Types

type SessionInput

type SessionInput struct {
	Id  string           `parameter:",kind=query,in=id" predicate:"equal,group=0,s,id"`
	Has *SessionInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*SessionInput) EmbedFS

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

type SessionInputHas

type SessionInputHas struct {
	Id bool
}

type SessionOutput

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

type SessionView

type SessionView struct {
	Id        string     `sqlx:"id"`
	UserId    string     `sqlx:"user_id"`
	Provider  string     `sqlx:"provider"`
	CreatedAt time.Time  `sqlx:"created_at"`
	UpdatedAt *time.Time `sqlx:"updated_at"`
	ExpiresAt time.Time  `sqlx:"expires_at"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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