structs

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCtx

type AppCtx struct {
	Mode       AppMode
	Env        constants.PlatformEnvType
	Credential *cHttp.AppCredential
}

func (*AppCtx) GetEnv

func (a *AppCtx) GetEnv() constants.PlatformEnvType

func (*AppCtx) IsOpenSDK

func (a *AppCtx) IsOpenSDK() bool

type AppMode

type AppMode int
const (
	AppModeOpenSDK AppMode = iota + 1
	AppModeFaaSSDK
)

type FileUploadResult added in v0.0.8

type FileUploadResult struct {
	Data *struct {
		URL string `json:"url,omitempty" bson:"url,omitempty"`
		*UploadError
	} `json:"data" bson:"data"`
}

type Option added in v0.0.8

type Option struct {
	Type string `json:"type,omitempty"` // http content type

}

type RecordOnlyId added in v0.0.8

type RecordOnlyId struct {
	ID primitive.ObjectID `json:"_id" bson:"_id"`
}

type UploadError added in v0.0.8

type UploadError struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

func (UploadError) Error added in v0.0.8

func (e UploadError) Error() error

type UploadResult added in v0.0.8

type UploadResult struct {
	URL string `json:"url,omitempty"`
}

Jump to

Keyboard shortcuts

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