store

package
v0.0.0-...-a39e517 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkPair

type LinkPair struct {
	Link       string
	OriginLink string
}

LinkPair link pair

type Storage

type Storage struct {
	BucketName    string
	ExistsMap     sync.Map
	Fp            *os.File
	FpMutex       sync.Mutex
	C             chan LinkPair
	WG            sync.WaitGroup
	CoroutineSize int
}

Storage model

func New

func New(bucketName string, coroutineSize int) *Storage

New create a storage

func (*Storage) Add

func (receiver *Storage) Add(link string, originLink string)

Add append link pair

func (*Storage) CloseAndWait

func (receiver *Storage) CloseAndWait()

CloseAndWait close C and wait

Jump to

Keyboard shortcuts

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