index

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Service *Service
}

func (*Controller) Index

func (x *Controller) Index(c *gin.Context) interface{}

func (*Controller) Ip added in v0.1.0

func (x *Controller) Ip(c *gin.Context) interface{}

type IpQuery added in v0.1.0

type IpQuery struct {
	Value string `form:"value" binding:"required,ip4_addr"`
}

type Service

type Service struct {
	*common.Inject
}

func (*Service) FindIp added in v0.1.0

func (x *Service) FindIp(ctx context.Context, value string) (data map[string]interface{}, err error)

Jump to

Keyboard shortcuts

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