payloads

package
v0.0.0-...-72a5972 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 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 CreateRegistration

type CreateRegistration struct {
	Email     string  `json:"email"`
	Password  string  `json:"password"`
	FirstName *string `json:"first_name"`
	LastName  *string `json:"last_name"`
}

CreateRegistration is the payload needed to register a user in the system.

func (CreateRegistration) Validate

func (c CreateRegistration) Validate() *nile.ErrorResponse

Validate ensures that the payload is in a valid state.

type Payload

type Payload interface {
	Validate() error
}

Payload is the structure that all JSON payloads are expected to conform.

Jump to

Keyboard shortcuts

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