endpoint

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

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

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

LoggingMiddleware 日志中间件 @param logger zap日志对象

func MakeAddEndPoint

func MakeAddEndPoint(s service.Service) endpoint.Endpoint

MakeAddEndPoint 创建加法端点

Types

type EndPointServer

type EndPointServer struct {
	// 加法端点
	AddEndPoint endpoint.Endpoint
}

EndPointServer 端点服务

func NewEndPointServer

func NewEndPointServer(svc service.Service, log *zap.Logger) EndPointServer

NewEndPointServer 创建端点服务 @param svc 服务对象 @param log zap日志对象

func (EndPointServer) Add

Add 端点服务对外暴露一个加法

Jump to

Keyboard shortcuts

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