api

package
v0.0.0-...-40bba9c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	HttpServer *http.Server
}

func NewServer

func NewServer(host string, port int) *Server

func (*Server) ConvertYang2YinH

func (s *Server) ConvertYang2YinH(c *gin.Context)

func (*Server) ConvertYin2YangH

func (s *Server) ConvertYin2YangH(c *gin.Context)

func (*Server) ListYearH

func (s *Server) ListYearH(c *gin.Context)

ListYearH 返回年份数据

func (*Server) ListYearMonthDayH

func (s *Server) ListYearMonthDayH(c *gin.Context)

func (*Server) ListYearMonthH

func (s *Server) ListYearMonthH(c *gin.Context)

func (*Server) RegisterRouter

func (s *Server) RegisterRouter(r *gin.Engine)

func (*Server) RegisterRouterV1

func (s *Server) RegisterRouterV1(v1 *gin.RouterGroup)

func (*Server) Run

func (s *Server) Run(ctx context.Context, wg *sync.WaitGroup)

func (*Server) Start

func (s *Server) Start(ctx context.Context, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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