Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelCache ¶
type ModelCache struct {
// contains filtered or unexported fields
}
func NewModelCache ¶
func NewModelCache(ttl time.Duration, cap int) *ModelCache
func (*ModelCache) GetModel ¶
func (mc *ModelCache) GetModel(ctx context.Context, name string, fn GetModelFunc) (*schema.Model, error)
func (*ModelCache) ListModels ¶
func (mc *ModelCache) ListModels(ctx context.Context, opts []opt.Opt, fn ListModelsFunc) ([]schema.Model, error)
Click to show internal directories.
Click to hide internal directories.