controller

package
v0.0.0-...-0ca9650 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationHeaderKey      = "Authorization"
	FileRequestShortIdParamName = "callReference"
)

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(logger zerolog.Logger, fileService distrybute.FileService, userService distrybute.UserService) *router

Types

type FileUploadResponse

type FileUploadResponse struct {
	CallReference   string `json:"callReference"`
	DeleteReference string `json:"deleteReference"`
}

FileUploadResponse is used to return information about an uploaded file.

type HandlerFunc

type HandlerFunc func(*responseWriter, *http.Request)

type Response

type Response struct {
	StatusCode   int         `json:"statusCode"`
	ErrorMessage string      `json:"errorMessage,omitempty"`
	Data         interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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