user

package
v0.2.34 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PathListURI = UserPathURI + "{}/"
View Source
var UserFS embed.FS
View Source
var UserPathURI = "/v1/api/agently/user"

Functions

func DefineUserComponent added in v0.2.9

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

Types

type UserInput added in v0.2.9

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

func (*UserInput) EmbedFS added in v0.2.9

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

type UserInputHas added in v0.2.9

type UserInputHas struct {
	Id bool
}

type UserOutput added in v0.2.9

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

type UserView added in v0.2.9

type UserView struct {
	Id                 string     `sqlx:"id"`
	Username           string     `sqlx:"username"`
	DisplayName        *string    `sqlx:"display_name"`
	Email              *string    `sqlx:"email"`
	Provider           string     `sqlx:"provider"`
	Subject            *string    `sqlx:"subject"`
	HashIp             *string    `sqlx:"hash_ip"`
	Timezone           string     `sqlx:"timezone"`
	DefaultAgentRef    *string    `sqlx:"default_agent_ref"`
	DefaultModelRef    *string    `sqlx:"default_model_ref"`
	DefaultEmbedderRef *string    `sqlx:"default_embedder_ref"`
	Settings           *string    `sqlx:"settings"`
	Disabled           int        `sqlx:"disabled"`
	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