dataadapter

package
v0.0.0-...-8f3a8e6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentUpload    = 0
	SuccessfulUpload = 1
	FailedUpload     = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataAdapter

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

func NewDataAdapter

func NewDataAdapter() *DataAdapter

func (*DataAdapter) Close

func (adapter *DataAdapter) Close()

func (*DataAdapter) GetLinkArchive

func (adapter *DataAdapter) GetLinkArchive(id uint64) (string, error)

func (*DataAdapter) InitLinkData

func (adapter *DataAdapter) InitLinkData(aliveMinutes int64, link string, claimedId uint64) (bool, error)

func (*DataAdapter) ReadTextData

func (adapter *DataAdapter) ReadTextData(id uint64) (string, error)

func (*DataAdapter) StoreTextData

func (adapter *DataAdapter) StoreTextData(aliveMinutes int64, textBlob string, claimedId uint64) (bool, error)

}

func (*DataAdapter) TimeUntilDomainPoll

func (adapter *DataAdapter) TimeUntilDomainPoll(rawURL string) (int64, error)

func (*DataAdapter) UpdateLinkUploaded

func (adapter *DataAdapter) UpdateLinkUploaded(id uint64, link, text string, uploadStatus int) error

type PollData

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

type TextData

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

type UploadError

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

func (*UploadError) Error

func (e *UploadError) Error() string

Jump to

Keyboard shortcuts

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