api

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: BSD-3-Clause Imports: 12 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) TencentCosExcel

func (x *API) TencentCosExcel(ctx context.Context, dto Dto) (err error)

func (*API) TencentCosExcelParse

func (x *API) TencentCosExcelParse(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 Dto

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

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"`
}

Jump to

Keyboard shortcuts

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