google

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "NOT_ALLOW_EXT",
	}
	ErrorReason_value = map[string]int32{
		"NOT_ALLOW_EXT": 0,
	}
)

Enum value maps for ErrorReason.

View Source
var File_fs_google_ecode_proto protoreflect.FileDescriptor

Functions

func ErrorNotAllowExt

func ErrorNotAllowExt(format string, args ...interface{}) *errors.Error

为某个枚举单独设置错误码

func IsNotAllowExt

func IsNotAllowExt(err error) bool

为某个枚举单独设置错误码

Types

type Client

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

func New

func New(c *fs.Conf) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) SaveWebSiteImage

func (c *Client) SaveWebSiteImage(ctx context.Context, url string) (string, error)

SaveWebSiteImage 转存网络上的视频或图片

func (*Client) UploadImage

func (c *Client) UploadImage(ctx context.Context, fileName string, data []byte) (string, error)

UploadImage 保存图片到google storage上

type ErrorReason

type ErrorReason int32
const (
	// 为某个枚举单独设置错误码
	ErrorReason_NOT_ALLOW_EXT ErrorReason = 0
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

func (ErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

Jump to

Keyboard shortcuts

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