siyouyunfaas

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

siyouyun_sdk

Siyouyun FaaS Service SDK

Documentation

Index

Constants

View Source
const (
	AppCodeEnvKey = "AppCode"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Api     SiyouFaasApi
	AppInfo *entity.AppRegisterInfo
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) Exec added in v0.1.3

func (a *App) Exec(ctx iris.Context, f func(*gorm.DB) error) error

type SiyouFaasApi

type SiyouFaasApi map[string]func(iris.Context)

func (SiyouFaasApi) Delete

func (api SiyouFaasApi) Delete(uri string, f func(iris.Context))

func (SiyouFaasApi) Exec

func (api SiyouFaasApi) Exec(uri string, ctx iris.Context)

func (SiyouFaasApi) Get

func (api SiyouFaasApi) Get(uri string, f func(iris.Context))

func (SiyouFaasApi) Post

func (api SiyouFaasApi) Post(uri string, f func(iris.Context))

func (SiyouFaasApi) Put

func (api SiyouFaasApi) Put(uri string, f func(iris.Context))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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