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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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) EndPointServer

NewEndPointServer 创建端点服务

func (EndPointServer) Add

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

Jump to

Keyboard shortcuts

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