index

package
v0.3.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: BSD-3-Clause Imports: 11 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 {
	IndexService *Service
}

func (*Controller) GetIp

func (x *Controller) GetIp(ctx context.Context, c *app.RequestContext)

func (*Controller) Index

func (x *Controller) Index(ctx context.Context, c *app.RequestContext)

type IpDto

type IpDto struct {
	Value string `query:"value,required"`
}

type Service

type Service struct {
	*common.Inject
}

func (*Service) GetIp

func (x *Service) GetIp(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