goapi

package
v0.0.0-...-dbed529 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(r *gin.Engine)

func GetPerm

func GetPerm(c *gin.Context) string

Types

type AComplexReq

type AComplexReq struct {
	Country       string
	City          string
	HouseNumber   int64
	IsCondo       bool
	SomeWeirdTest string `json:"SUPERCALIFRAGILISPEALIDOUX"`
	Recursive     map[string]AComplexReq
	Arrofpstr     []string `json:"arrofpstr,omitempty"`
	When          time.Time
	Some          crypto.Decrypter
}

@API

type ASimpleReq

type ASimpleReq struct {
	Data string
}

@API

type ASimpleRes

type ASimpleRes struct {
	Data string
}

@API

func ApiMethod01

func ApiMethod01(ctx context.Context, s *ASimpleReq) (out *ASimpleRes, err error)

@API @PATH: /someapi @PERM: ASD @VERB: POST

func ApiMethod02

func ApiMethod02(ctx context.Context, s *AComplexReq) (out *ASimpleRes, err error)

@API @PATH: /someapi2 @PERM: ASD @VERB: GET

Jump to

Keyboard shortcuts

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