apikeys

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Types

type CreateAPIKeyRequest

type CreateAPIKeyRequest struct {
	Duration time.Duration `json:"duration"`
}

CreateAPIKeyRequest is the request body for the create api key endpoint.

type CreateAPIKeyResponse

type CreateAPIKeyResponse struct {
	APIKey    string     `json:"apikey"`
	ExpiresAt *time.Time `json:"expires_at"`
}

CreateAPIKeyResponse is the response body for the create api key endpoint.

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

LoginRequest is the request body for the login endpoint.

Jump to

Keyboard shortcuts

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