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

index

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 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