endpoint

package
v0.0.0-...-99cece9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCommentsListEndpoint

func MakeCommentsListEndpoint(svc service.Service) endpoint.Endpoint

func MakeHealthCheckEndpoint

func MakeHealthCheckEndpoint(svc service.Service) endpoint.Endpoint

MakeHealthCheckEndpoint 创建健康检查Endpoint

Types

type CommentsEndpoints

type CommentsEndpoints struct {
	CommentsListEndpoint endpoint.Endpoint
	HealthCheckEndpoint  endpoint.Endpoint
}

type CommentsListRequest

type CommentsListRequest struct {
	Id string
}

服务发现请求结构体

type CommentsListResponse

type CommentsListResponse struct {
	Detail service.CommentListVO `json:"detail"`
	Error  string                `json:"error"`
}

服务发现响应结构体

type HealthRequest

type HealthRequest struct{}

HealthRequest 健康检查请求结构

type HealthResponse

type HealthResponse struct {
	Status string `json:"status"`
}

HealthResponse 健康检查响应结构

Jump to

Keyboard shortcuts

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