Documentation
¶
Overview ¶
Package refertable for saving external data
Index ¶
- Constants
- Variables
- func ColType2SqliteType(typeName string) string
- func DoRequestWithRetry(ctx context.Context, method string, url string, body []byte, ...) (*http.Response, error)
- func InitLog()
- type InConfig
- type PlReferTables
- type PlReferTablesInMemory
- type PlReferTablesSqlite
- type RefTbCfg
- type ReferTable
- type ReferTableStats
- type RetryConfig
Constants ¶
View Source
const ( SchemeHTTP = "http" SchemeHTTPS = "https" PullDuration = time.Second )
Variables ¶
View Source
var DefaultRetryConfig = RetryConfig{ MaxRetry: 3, InitialDelay: time.Second, MaxDelay: time.Second * 15, RetryCondition: nil, }
Functions ¶
func ColType2SqliteType ¶
func DoRequestWithRetry ¶ added in v1.1.1
Types ¶
type PlReferTables ¶
type PlReferTablesInMemory ¶
type PlReferTablesInMemory struct {
// contains filtered or unexported fields
}
func (*PlReferTablesInMemory) Stats ¶
func (plrefer *PlReferTablesInMemory) Stats() *ReferTableStats
type PlReferTablesSqlite ¶
type PlReferTablesSqlite struct {
// contains filtered or unexported fields
}
func (*PlReferTablesSqlite) Stats ¶
func (p *PlReferTablesSqlite) Stats() *ReferTableStats
type ReferTable ¶
type ReferTable struct {
// contains filtered or unexported fields
}
func NewReferTable ¶
func NewReferTable(cfg RefTbCfg) (*ReferTable, error)
func (*ReferTable) InitFinished ¶
func (refT *ReferTable) InitFinished(waitTime time.Duration) bool
InitFinished used to check init status.
func (*ReferTable) PullWorker ¶
func (refT *ReferTable) PullWorker(ctx context.Context)
func (*ReferTable) Tables ¶
func (refT *ReferTable) Tables() PlReferTables
type ReferTableStats ¶
Click to show internal directories.
Click to hide internal directories.