httphandler

package
v0.0.0-...-d91dd4b Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(srv PurlService) Handler

func (Handler) LongInfo

func (h Handler) LongInfo(c echo.Context) error

func (Handler) Redirect

func (h Handler) Redirect(c echo.Context) error

func (Handler) Register

func (h Handler) Register(g *echo.Group)

func (Handler) Short

func (h Handler) Short(c echo.Context) error

type Health

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

func NewHealth

func NewHealth(r redis.Redis) Health

func (Health) HealthCheck

func (h Health) HealthCheck(c echo.Context) error

func (Health) Register

func (h Health) Register(g *echo.Group)

type PurlService

type PurlService interface {
	Short(ctx context.Context, sReq param.ShortRequest) (param.ShortResponse, error)
	GetLong(ctx context.Context, surl param.LongRequest) (param.LongResponse, error)
	GetLongInfo(ctx context.Context, surl param.LongInfoRequest) (param.LongInfoResponse, error)
}

Jump to

Keyboard shortcuts

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