payloads

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Message string `json:"message"`
	Slug    string `json:"slug,omitempty"`
}

func (*ApiError) Error

func (a *ApiError) Error() string

type GetProjectsResponse

type GetProjectsResponse struct {
	Projects []*model.Project `json:"projects"`
	Error    *ApiError        `json:"error"`
}

type LoginRequest

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

type ProjectRequest

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

func (ProjectRequest) Valid

func (r ProjectRequest) Valid() bool

type ProjectResponse

type ProjectResponse struct {
	Project *model.Project `json:"project"`
	Error   *ApiError      `json:"error"`
}

type RegisterRequest

type RegisterRequest struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Username  string `json:"username"`
	Email     string `json:"email"`
	Password  string `json:"password"`
}

func (RegisterRequest) Valid

func (r RegisterRequest) Valid() bool

type TokenResponse

type TokenResponse struct {
	Token string    `json:"token"`
	Error *ApiError `json:"error"`
}

type UploadContractsRequest

type UploadContractsRequest struct {
	Contracts []truffle.Contract `json:"contracts"`
}

type UploadContractsResponse

type UploadContractsResponse struct {
	Contracts []truffle.ApiContract `json:"contracts"`
	Error     *ApiError             `json:"error"`
}

type UserResponse

type UserResponse struct {
	User *model.User `json:"user"`
}

Jump to

Keyboard shortcuts

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