rest

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAppJson

func BindAppJson(c *gin.Context, inf interface{}) error

BindAppJson turns the request body to inf, but for "application/json" contents only

Types

type ErrorMsg

type ErrorMsg struct {
	Error string `json:"error"`
}

type Rest

type Rest struct {
	// contains filtered or unexported fields
}

func New

func New(svc *api.Service) *Rest

func (*Rest) CreateLog

func (r *Rest) CreateLog(c *gin.Context)

func (*Rest) CreateRecords

func (r *Rest) CreateRecords(c *gin.Context, logId restapi.LogId)

func (*Rest) DeleteLogs

func (r *Rest) DeleteLogs(c *gin.Context)

func (*Rest) Ping

func (r *Rest) Ping(c *gin.Context)

func (*Rest) QueryLogs

func (r *Rest) QueryLogs(c *gin.Context, params restapi.QueryLogsParams)

func (*Rest) QueryRecords

func (r *Rest) QueryRecords(c *gin.Context, params restapi.QueryRecordsParams)

func (*Rest) RegisterEPs

func (r *Rest) RegisterEPs(g *gin.Engine) error

func (*Rest) UpdateLog

func (r *Rest) UpdateLog(c *gin.Context, logId restapi.LogId)

Jump to

Keyboard shortcuts

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