Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderVersionSet = wire.NewSet(versionapi.NewVersionCore)
	ProviderSet        = wire.NewSet(
		wire.Struct(new(Usecase), "*"),
		NewHTTPHandler,
		versionapi.New,
	)
)

Functions

func NewHTTPHandler

func NewHTTPHandler(uc *Usecase) http.Handler

NewHTTPHandler 生成Gin框架路由内容

func NewUniqueID added in v1.2.2

func NewUniqueID(db *gorm.DB) uniqueid.Core

NewUniqueID 生成唯一 id

Types

type KV

type KV struct {
	Key   string
	Value int64
}

type Usecase

type Usecase struct {
	Conf    *conf.Bootstrap
	DB      *gorm.DB
	Version versionapi.API
}

Jump to

Keyboard shortcuts

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