Documentation
¶
Index ¶
- type Mock
- func (x Mock) Authorize(ctx context.Context, input *model.AuthPolicyInput) error
- func (x Mock) Enqueue(ctx context.Context, req *model.EnqueueRequest) (*model.EnqueueResponse, error)
- func (x Mock) GetOrCreateState(ctx context.Context, msgType types.MsgType, id string) (*model.State, bool, error)
- func (x *Mock) Load(ctx context.Context, req []*model.LoadRequest) error
- func (x Mock) ObjectToSources(ctx context.Context, obj model.Object) ([]*model.Source, error)
- func (x Mock) UpdateState(ctx context.Context, msgType types.MsgType, id string, state types.MsgState) error
- func (x Mock) WaitState(ctx context.Context, msgType types.MsgType, id string, expiresAt time.Time) error
- type Option
- func WithEnqueueCountLimit(n int) Option
- func WithEnqueueSizeLimit(n int) Option
- func WithIngestRecordConcurrency(n int) Option
- func WithIngestTableConcurrency(n int) Option
- func WithMetadata(metadata *model.MetadataConfig) Option
- func WithReadObjectConcurrency(n int) Option
- func WithStateCheckInterval(d time.Duration) Option
- func WithStateTTL(d time.Duration) Option
- func WithStateTimeout(d time.Duration) Option
- type UseCase
- func (x *UseCase) ApplyInferredSchema(ctx context.Context, urls []types.CSUrl) error
- func (x *UseCase) Authorize(ctx context.Context, input *model.AuthPolicyInput) error
- func (x *UseCase) Enqueue(ctx context.Context, req *model.EnqueueRequest) (*model.EnqueueResponse, error)
- func (x *UseCase) GetOrCreateState(ctx context.Context, msgType types.MsgType, id string) (*model.State, bool, error)
- func (x *UseCase) Load(ctx context.Context, requests []*model.LoadRequest) error
- func (x *UseCase) LoadDataByObject(ctx context.Context, url types.CSUrl) error
- func (x *UseCase) Migrate(ctx context.Context, src, dst *model.BigQueryDest, query string) error
- func (x *UseCase) ObjectToSources(ctx context.Context, obj model.Object) ([]*model.Source, error)
- func (x *UseCase) UpdateState(ctx context.Context, msgType types.MsgType, id string, state types.MsgState) error
- func (x *UseCase) WaitState(ctx context.Context, msgType types.MsgType, id string, expiresAt time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct { MockLoadData func(ctx context.Context, req []*model.LoadRequest) error MockAuthorize func(ctx context.Context, input *model.AuthPolicyInput) error MockObjectToSources func(ctx context.Context, obj model.Object) ([]*model.Source, error) MockEnqueue func(ctx context.Context, req *model.EnqueueRequest) (*model.EnqueueResponse, error) MockGetOrCreateState func(ctx context.Context, msgType types.MsgType, id string) (*model.State, bool, error) MockUpdateState func(ctx context.Context, msgType types.MsgType, id string, state types.MsgState) error MockWaitState func(ctx context.Context, msgType types.MsgType, id string, expiresAt time.Time) error }
func (Mock) Enqueue ¶ added in v0.0.5
func (x Mock) Enqueue(ctx context.Context, req *model.EnqueueRequest) (*model.EnqueueResponse, error)
func (Mock) GetOrCreateState ¶ added in v0.1.0
func (Mock) ObjectToSources ¶
func (Mock) UpdateState ¶ added in v0.1.0
type Option ¶
type Option func(*UseCase)
func WithEnqueueCountLimit ¶ added in v0.1.0
func WithEnqueueSizeLimit ¶ added in v0.1.0
func WithIngestRecordConcurrency ¶ added in v0.1.2
func WithIngestTableConcurrency ¶ added in v0.1.2
func WithMetadata ¶
func WithMetadata(metadata *model.MetadataConfig) Option
func WithReadObjectConcurrency ¶ added in v0.0.7
func WithStateCheckInterval ¶ added in v0.1.2
func WithStateTTL ¶ added in v0.1.0
func WithStateTimeout ¶ added in v0.1.0
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) ApplyInferredSchema ¶
func (*UseCase) Authorize ¶
UseCase is a usecase of authorization for HTTP access. It uses policy engine to evaluate the access control.
func (*UseCase) Enqueue ¶ added in v0.0.5
func (x *UseCase) Enqueue(ctx context.Context, req *model.EnqueueRequest) (*model.EnqueueResponse, error)
func (*UseCase) GetOrCreateState ¶ added in v0.1.0
func (*UseCase) LoadDataByObject ¶
func (*UseCase) ObjectToSources ¶
func (*UseCase) UpdateState ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.