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

api

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*common.Inject
}

func (*API) EventInvoke

func (x *API) EventInvoke(w http.ResponseWriter, req *http.Request)

func (*API) ParseExcel

func (x *API) ParseExcel(ctx context.Context, body io.Reader) (err error)

type Cos

type Cos struct {
	CosSchemaVersion  string `json:"cosSchemaVersion"`
	CosObject         `json:"cosObject"`
	CosBucket         `json:"cosBucket"`
	CosNotificationId string `json:"cosNotificationId"`
}

type CosBucket

type CosBucket struct {
	Region string `json:"region"`
	Name   string `json:"name"`
	Appid  string `json:"appid"`
}

type CosObject

type CosObject struct {
	Url  string `json:"url"`
	Meta M      `json:"meta"`
	Vid  string `json:"vid"`
	Key  string `json:"key"`
	Size int64  `json:"size"`
}

type Event

type Event struct {
	EventName         string `json:"eventName"`
	EventVersion      string `json:"eventVersion"`
	EventTime         int64  `json:"eventTime"`
	EventSource       string `json:"eventSource"`
	RequestParameters M      `json:"requestParameters"`
	EventQueue        string `json:"eventQueue"`
	ReservedInfo      string `json:"reservedInfo"`
	Reqid             int64  `json:"reqid"`
}

type M

type M map[string]interface{}

type Record

type Record struct {
	Cos   `json:"cos"`
	Event `json:"event"`
}

type Result

type Result struct {
	Records []Record `json:"records"`
}

Jump to

Keyboard shortcuts

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