api

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrganizationRequest

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

type CreateTokenRequest

type CreateTokenRequest struct {
	Identifier string `json:"identifier"`
	Type       string `json:"type"`
}

type CreateTokenResponse

type CreateTokenResponse struct {
	Token string `json:"token"`
}

type ListTokensResponse

type ListTokensResponse struct {
	ID         int64  `json:"id"`
	Identifier string `json:"identifier"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type Organization

type Organization struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

type RegisterRequest

type RegisterRequest struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required"`
}

type UploadFile

type UploadFile struct {
	FileHeader *multipart.FileHeader
	File       multipart.File
}

type User

type User struct {
	ID       int64   `json:"id"`
	Name     *string `json:"name"`
	Username string  `json:"username"`
	Email    *string `json:"email"`
	Avatar   *string `json:"avatar"`
	IsAdmin  bool    `json:"isAdmin"`
}

Jump to

Keyboard shortcuts

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