utils

package
v0.0.0-...-5646104 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebResponseWithAppError

func NewWebResponseWithAppError(status int, err *usecases.AppError) *web.WebResponse

func NewWebResponseWithError

func NewWebResponseWithError(status int, err error) *web.WebResponse

Types

type WebError

type WebError struct {
	Message string `json:"message"`
	Code    int32  `json:"code"`
}

func NewWebError

func NewWebError(message string, code int32) *WebError

func (*WebError) Marshal

func (we *WebError) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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