Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DateSet = wire.NewSet(ProvideDateService, wire.Bind(new(DateInterface), new(*DateService)))
Functions ¶
This section is empty.
Types ¶
type DateInterface ¶
type DateService ¶
func ProvideDateService ¶
func ProvideDateService(registery *mesh.Registry) *DateService
provide for wire
func (*DateService) GetDistance ¶
func (service *DateService) GetDistance(start, end int) (before, after int)
Get distance from date-api for given date Currently only support POST method
func (*DateService) GetLunarDistance ¶
func (service *DateService) GetLunarDistance(start, end int) (before, after int)
Get distance from date-api for given date (Lunar) Currently only support POST method
Click to show internal directories.
Click to hide internal directories.