api_handler

package
v0.0.0-...-31a6bf9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	*handler.Handler
}

func NewHandler

func NewHandler(h *handler.Handler) (*Handler, error)

NewHandler creates api handler object.

func (*Handler) DailyHitsInRecently

func (h *Handler) DailyHitsInRecently(c echo.Context) error

DailyHitsInRecently is API, which shows a graph related daily page count.

func (*Handler) IncrCount

func (h *Handler) IncrCount(c echo.Context) error

IncrCount is API, which it's to increase page count.

func (*Handler) KeepCount

func (h *Handler) KeepCount(c echo.Context) error

KeepCount is API, which it is not to increase page count.

type RankTask

type RankTask struct {
	Counter   counter.Counter
	Domain    string
	Path      string
	CreatedAt time.Time
}

func (*RankTask) Process

func (task *RankTask) Process(ctx context.Context) error

Process is a specific method implemented Task interface in async task.

type WebSocketMessage

type WebSocketMessage struct {
	Payload []byte
}

func (*WebSocketMessage) GetMessage

func (wsm *WebSocketMessage) GetMessage() []byte

GetMessage is a specific method implemented Message interface in websocket.

Jump to

Keyboard shortcuts

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