types

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

* @Descripttion: * @version: * @Author: lfzxs@qq.com * @Date: 2022-10-12 14:22:35 * @LastEditors: lfzxs@qq.com * @LastEditTime: 2022-11-29 13:43:19

Index

Constants

View Source
const (
	MaxFileSize = 9223372036854775807
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

Pair will store option for storage service.

func Find

func Find(key string, pairs []Pair) (p *Pair, has bool)

func WithContentMd5

func WithContentMd5(v string) (p Pair)

WithContentMd5 will apply content_md5 value to Options.

ContentMd5

func WithContentType

func WithContentType(v string) (p Pair)

WithContentType will apply content_type value to Options.

ContentType

func WithModifyTime

func WithModifyTime(v time.Time) (p Pair)

WithContentType will apply content_type value to Options.

ContentType

func WithPath

func WithPath(v string) (p Pair)

func WithSize

func WithSize(v int64) (p Pair)

func (Pair) Int64

func (p Pair) Int64() (int64, bool)

func (Pair) String

func (p Pair) String() string

Jump to

Keyboard shortcuts

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