dto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationRequest

type AuthenticationRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

An AuthenticationRequest represents an authentication request

type AuthenticationResponse

type AuthenticationResponse struct {
	JWT string `json:"bearer"`
}

An AuthenticationResponse contains a valid auth token to use in subsequent requests

type Book

type Book struct {
	ID        string            `json:"id"`
	Title     string            `json:"title"`
	Authors   []string          `json:"authors"`
	Published int               `json:"published"`
	ISBN      string            `json:"isbn,omitempty"`
	Subjects  []string          `json:"subjects"`
	Covers    map[string]string `json:"covers"`
}

type Register

type Register struct {
	Username    string `json:"username"`
	Password    string `json:"password"`
	DisplayName string `json:"display_name"`
	Email       string `json:"email"`
}

A Register is a request made to register a new user

Jump to

Keyboard shortcuts

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