scf-go-lib:scf去lib

时间:2024-06-07 17:30:55
【文件属性】:

文件名称:scf-go-lib:scf去lib

文件大小:22KB

文件格式:ZIP

更新时间:2024-06-07 17:30:55

Go

scf-go-lib 用于 SCF GO 环境的库及工具 GO 环境开发说明 package main import ( "context" "fmt" "github.com/tencentyun/scf-go-lib/cloudfunction" ) type DefineEvent struct { // test event define Key1 string `json:"key1"` Key2 string `json:"key2"` Key3 string `json:"key3"` } func hello(ctx context.Context, event DefineEvent) (string, error) { fmt.Println("key1:", event.Key1) fmt.Println("key2:", event.Key2)


【文件预览】:
scf-go-lib-master
----functioncontext()
--------context.go(2KB)
----cloudevents()
--------scf()
----LICENSE-TENCENT(460B)
----FROM(121B)
----events()
--------timer.go(162B)
--------ckafka.go(529B)
--------apigw_test.go(1KB)
--------cmq.go(1KB)
--------cmq_test.go(560B)
--------ckafka_test.go(408B)
--------cos_test.go(1KB)
--------cos.go(2KB)
--------apigw.go(2KB)
--------timer_test.go(351B)
----LICENSE(11KB)
----cloudfunction()
--------panic.go(2KB)
--------function.go(3KB)
--------entry.go(2KB)
--------handler.go(4KB)
--------messages()
----README.md(3KB)

网友评论