server

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterValidators

func RegisterValidators(validate *validator.Validate) error

func Start

func Start(configArg *shared.ServerConfig, devMode bool)

Types

type DecodedJWT

type DecodedJWT struct {
	Claims   *auth.KronusTokenClaims
	ErrorMsg string
}

type RequestContextKey

type RequestContextKey string

type ResponsePayload

type ResponsePayload struct {
	Errors  []string    `json:"errors,omitempty"`
	Success bool        `json:"success"`
	Data    interface{} `json:"data,omitempty"`
	Paging  interface{} `json:"paging,omitempty"`
}

type ResponseWriterWithStatus

type ResponseWriterWithStatus struct {
	http.ResponseWriter
	Status int
}

func (*ResponseWriterWithStatus) WriteHeader

func (r *ResponseWriterWithStatus) WriteHeader(status int)

type TokenPayload

type TokenPayload struct {
	Token string `json:"token"`
}

type TwilioSmsResponse

type TwilioSmsResponse struct {
	XMLName xml.Name `xml:"Response"`
	Message string
}

Directories

Path Synopsis
key

Jump to

Keyboard shortcuts

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