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) RunWithSubscriptions(ctx context.Context, subscriptions []string) 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 ¶
func (x Mock) Enqueue(ctx context.Context, req *model.EnqueueRequest) (*model.EnqueueResponse, error)
func (Mock) GetOrCreateState ¶
func (Mock) ObjectToSources ¶
func (Mock) UpdateState ¶
type Option ¶
type Option func(*UseCase)
func WithEnqueueCountLimit ¶
func WithEnqueueSizeLimit ¶
func WithMetadata ¶
func WithMetadata(metadata *model.MetadataConfig) Option
func WithStateCheckInterval ¶
func WithStateTTL ¶
func WithStateTimeout ¶
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 ¶
func (x *UseCase) Enqueue(ctx context.Context, req *model.EnqueueRequest) (*model.EnqueueResponse, error)
func (*UseCase) GetOrCreateState ¶
func (*UseCase) LoadDataByObject ¶
func (*UseCase) ObjectToSources ¶
func (*UseCase) RunWithSubscriptions ¶
func (*UseCase) UpdateState ¶
Click to show internal directories.
Click to hide internal directories.