tests

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Users

func Users() error

Users list @openapi GET /i/v1/users @openapiRequest multipart/form-data {"file": []byte} @openapiResponse 200 application/json {"users": []User2, "user": User2} @openapiSecurity api_key apiKey cookie AuthKey

Types

type Alias added in v1.6.0

type Alias StructForAlias

type DescriptionStruct added in v1.7.0

type DescriptionStruct struct {
	ID int
	// contains filtered or unexported fields
}

type ExtensionsStruct added in v1.8.0

type ExtensionsStruct struct {
	ID int `openapiExt:"x-test-ext=test,x-test-ext2=1"`
}

type Group

type Group struct {
	Name  string
	Data  json2.RawMessage
	Admin User
}

type Group2

type Group2 struct {
	Name      string   `json:"name"`
	Paths     []string `json:"paths"`
	Admin     *User2   `json:"admin"`
	GroupType Type     `json:"groupType"`
	Data      []byte
}

type NestedAlias added in v1.6.0

type NestedAlias nested.NestedStruct

type NestedSimpleAlias added in v1.7.0

type NestedSimpleAlias nested.NestedSimpleAlias

type SimpleAlias added in v1.7.0

type SimpleAlias string

type SliceAlias added in v1.6.0

type SliceAlias []string

type Struct2

type Struct2 struct {
	ID   int
	Data json3.RawMessage
}

type Struct4 added in v1.6.0

type Struct4 struct {
	ID     int
	Nested nested.NestedStruct
}

type StructForAlias added in v1.6.0

type StructForAlias struct {
	Name string `json:"name"`
}

type Type

type Type struct {
	Name string `json:"name"`
}

type UUIDUser added in v1.6.0

type UUIDUser struct {
	Name        string `json:"name"`
	ID          string `json:"id" openapi:"required,format=uuid"`
	Group       string `json:"group" openapi:"required,default=user" openapiEnum:"admin,manager,user"`
	Description string `json:"description" openapi:"example=testExample" openapiDesc:"testDescription"`
}

type User

type User struct {
	ID        int
	Name      string
	CreatedAt *time.Time
	Groups    []Group
	// contains filtered or unexported fields
}

type User2

type User2 struct {
	ID          uint             `json:"id"`
	Name        string           `json:"name"`
	Email       string           `json:"email"`
	IsAdmin     bool             `json:"is_admin"`
	Groups      []Group2         `json:"groups"`
	CreatedAt   time.Time        `json:"created_at"`
	AccountType Type             `json:"accountType"`
	UserType    Type             `json:"userType"`
	Manager     *User2           `json:"manager"`
	Json        json.RawMessage  `json:"json"`
	Json2       json2.RawMessage `json:"json2"`
	Bites       []byte           `json:"bites"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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