handler

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

Base is base handler

func NewBase

func NewBase(logger *zap.Logger) Base

NewBase returns base handler

func (Base) Logger

func (b Base) Logger() *zap.Logger

Logger returns logger

func (Base) ReplyJSON

func (b Base) ReplyJSON(writer http.ResponseWriter, status int, data interface{})

ReplyJSON reply request with JSON

func (Base) SetPagination

func (b Base) SetPagination(writer http.ResponseWriter, pagination *api.Pagination)

SetPagination set pagination

Jump to

Keyboard shortcuts

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