requests

package
v0.0.0-...-db3ee06 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Email    string `json:"email" validate:"required" example:"john.doe@example.com"`
	Password string `json:"password" validate:"required" example:"11111111"`
}

func (BasicAuth) Validate

func (ba BasicAuth) Validate() error

type BasicPost

type BasicPost struct {
	Title   string `json:"title" validate:"required" example:"Echo"`
	Content string `json:"content" validate:"required" example:"Echo is nice!"`
}

func (BasicPost) Validate

func (bp BasicPost) Validate() error

type CreatePostRequest

type CreatePostRequest struct {
	BasicPost
}

type LoginRequest

type LoginRequest struct {
	BasicAuth
}

type RefreshRequest

type RefreshRequest struct {
	Token string `json:"token" validate:"required" example:"refresh_token"`
}

type RegisterRequest

type RegisterRequest struct {
	BasicAuth
	Name string `json:"name" validate:"required" example:"John Doe"`
}

func (RegisterRequest) Validate

func (rr RegisterRequest) Validate() error

type UpdatePostRequest

type UpdatePostRequest struct {
	BasicPost
}

Jump to

Keyboard shortcuts

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