Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIFetcher ¶
func NewAPIFetcher ¶
func NewAPIFetcher(url, apiKey string) *APIFetcher
NewAPIFetcher creates a new API fetcher using the provided URL and API key.
func (*APIFetcher) FetchTable ¶
func (f *APIFetcher) FetchTable(ctx context.Context, table string) (io.ReadCloser, error)
type Changefeed ¶
type Model ¶
type Model struct { Cache *Cache `json:"cache"` Changefeed *Changefeed `json:"changefeed"` ModelVersion string `json:"modelVersion"` Public bool `json:"public"` }
type ModelRegistry ¶
func NewModelRegistry ¶
func NewModelRegistry(fetcher Fetcher, opts ...WithOption) ModelRegistry
NewModelRegistry creates a new model registry using the provided fetcher.
type ModelRegistryOption ¶
type WithOption ¶
type WithOption func(opt *ModelRegistryOption)
func WithExpireAfter ¶
func WithExpireAfter(expireAfter time.Duration) WithOption
WithExpireAfter sets the expire after duration for an item in the model registry.
Click to show internal directories.
Click to hide internal directories.