common

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathExists added in v1.7.4

func PathExists(path string) (bool, error)

func SetDefaultStormNode added in v1.7.4

func SetDefaultStormNode(n storm.Node)

Types

type Condition

type Condition struct {
	Field    string `json:"field"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

type Conditions

type Conditions map[string]Condition

type DBOptions

type DBOptions struct {
	DB storm.Node
}

type DBService

type DBService interface {
	GetDB(options DBOptions) storm.Node
}

type DefaultDBService

type DefaultDBService struct {
}

func (*DefaultDBService) GetDB

func (d *DefaultDBService) GetDB(options DBOptions) storm.Node

type OSSClient added in v1.7.4

type OSSClient struct {
	// contains filtered or unexported fields
}

func InitOssClient added in v1.7.4

func InitOssClient(endpoint string) (*OSSClient, error)

func (*OSSClient) AuthURL added in v1.7.4

func (o *OSSClient) AuthURL(url string) (string, error)

func (*OSSClient) GetObject added in v1.7.4

func (o *OSSClient) GetObject(url string, ctx context.Context) (string, error)

func (*OSSClient) PutObject added in v1.7.4

func (o *OSSClient) PutObject(url string, data []byte, retryCount int, contentType string, ctx context.Context) error

type StormDBNodeWrapper added in v1.7.4

type StormDBNodeWrapper struct {
	storm.Node
}

func NewStormDBNodeWrapper added in v1.7.4

func NewStormDBNodeWrapper(node storm.Node) *StormDBNodeWrapper

func (*StormDBNodeWrapper) Save added in v1.7.4

func (s *StormDBNodeWrapper) Save(data interface{}) error

Jump to

Keyboard shortcuts

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