Documentation ¶
Index ¶
- Constants
- type DataAdapter
- func (adapter *DataAdapter) Close()
- func (adapter *DataAdapter) GetLinkArchive(id uint64) (string, error)
- func (adapter *DataAdapter) InitLinkData(aliveMinutes int64, link string, claimedId uint64) (bool, error)
- func (adapter *DataAdapter) ReadTextData(id uint64) (string, error)
- func (adapter *DataAdapter) StoreTextData(aliveMinutes int64, textBlob string, claimedId uint64) (bool, error)
- func (adapter *DataAdapter) TimeUntilDomainPoll(rawURL string) (int64, error)
- func (adapter *DataAdapter) UpdateLinkUploaded(id uint64, link, text string, uploadStatus int) error
- type PollData
- type TextData
- type UploadError
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 (*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 UploadError ¶
type UploadError struct {
// contains filtered or unexported fields
}
func (*UploadError) Error ¶
func (e *UploadError) Error() string
Click to show internal directories.
Click to hide internal directories.