v4_endpoint

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(logger *zap.Logger) endpoint.Middleware

func LoggingMiddleware

func LoggingMiddleware(logger *zap.Logger) endpoint.Middleware

func MakeAddEndPoint

func MakeAddEndPoint(s v4_service.Service) endpoint.Endpoint

func MakeLoginEndPoint

func MakeLoginEndPoint(s v4_service.Service) endpoint.Endpoint

func NewGolangRateAllowMiddleware

func NewGolangRateAllowMiddleware(limit *rate.Limiter) endpoint.Middleware

func NewGolangRateWaitMiddleware

func NewGolangRateWaitMiddleware(limit *rate.Limiter) endpoint.Middleware

func NewUberRateMiddleware

func NewUberRateMiddleware(limit ratelimit.Limiter) endpoint.Middleware

Types

type EndPointServer

type EndPointServer struct {
	AddEndPoint   endpoint.Endpoint
	LoginEndPoint endpoint.Endpoint
}

func NewEndPointServer

func NewEndPointServer(svc v4_service.Service, log *zap.Logger, limit *rate.Limiter, limiter ratelimit.Limiter) EndPointServer

func (EndPointServer) Add

func (EndPointServer) Login

Jump to

Keyboard shortcuts

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