Documentation
¶
Index ¶
- type AuthData
- type Data
- type DataList
- type DeliveryClient
- type DeploymentOptions
- type EnumType
- type EventMetadata
- type FieldFilter
- type Filter
- type ManagementClient
- type MockDeliveryClient
- func (c *MockDeliveryClient) Close() error
- func (c *MockDeliveryClient) DeleteDataByFilter(ctx context.Context, projection string, authData *AuthData, filter *Filter, ...) (int64, error)
- func (c *MockDeliveryClient) DeleteDataById(ctx context.Context, projection string, authData *AuthData, id string, ...) (int64, error)
- func (c *MockDeliveryClient) GetData(ctx context.Context, projection string, authData *AuthData, id string, ...) (*Data, error)
- func (c *MockDeliveryClient) GetDataList(ctx context.Context, projection string, authData *AuthData, ...) (*DataList, error)
- func (c *MockDeliveryClient) GetViewData(ctx context.Context, view string, authData *AuthData, filter *Filter, ...) (*Data, error)
- func (c *MockDeliveryClient) GetViewDataList(ctx context.Context, view string, authData *AuthData, pagination *Pagination, ...) (*DataList, error)
- func (c *MockDeliveryClient) UpsertData(ctx context.Context, projection string, authData *AuthData, id string, ...) (*UpsertResponse, error)
- type MockManagementClient
- func (c *MockManagementClient) ActivateSchema(ctx context.Context, deploymentId int64) error
- func (c *MockManagementClient) Close() error
- func (c *MockManagementClient) ConfirmSchema(ctx context.Context, deploymentId int64) error
- func (c *MockManagementClient) DeploySchema(ctx context.Context, deploymentId int64, namespace string, ...) error
- func (c *MockManagementClient) GetSchemaDeployment(ctx context.Context, deploymentId int64) (uint32, error)
- func (c *MockManagementClient) RollbackSchema(ctx context.Context, namespace string, target managementpb.DeploymentTarget) error
- func (c *MockManagementClient) RollbackSchemaByDeployment(ctx context.Context, deploymentId int64) error
- type ObjectType
- type Order
- type Pagination
- type TypeArgument
- type TypeDirective
- type TypeField
- type UpsertResponse
- type View
- type Wait
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeliveryClient ¶
type DeliveryClient interface {
GetData(
ctx context.Context,
projection string,
authData *AuthData,
id string,
filter *Filter,
returnEmptyDataIfNotFound bool,
wait *Wait,
useStrongConsistency bool,
target deliverypb.DeploymentTarget,
) (*Data, error)
GetViewData(
ctx context.Context,
view string,
authData *AuthData,
filter *Filter,
useStrongConsistency bool,
target deliverypb.DeploymentTarget,
) (*Data, error)
GetDataList(
ctx context.Context,
projection string,
authData *AuthData,
pagination *Pagination,
filter *Filter,
order []Order,
useStrongConsistency bool,
target deliverypb.DeploymentTarget,
) (*DataList, error)
GetViewDataList(
ctx context.Context,
view string,
authData *AuthData,
pagination *Pagination,
filter *Filter,
order []Order,
useStrongConsistency bool,
target deliverypb.DeploymentTarget,
) (*DataList, error)
UpsertData(
ctx context.Context,
projection string,
authData *AuthData,
id string,
payload Data,
eventMetadata *EventMetadata,
) (*UpsertResponse, error)
DeleteDataById(
ctx context.Context,
projection string,
authData *AuthData,
id string,
eventMetadata *EventMetadata,
) (int64, error)
DeleteDataByFilter(
ctx context.Context,
projection string,
authData *AuthData,
filter *Filter,
eventMetadata *EventMetadata,
) (int64, error)
Close() error
}
func NewDeliveryClient ¶
func NewDeliveryClient( conf *config.Config, ) (DeliveryClient, error)
type DeploymentOptions ¶
type DeploymentOptions struct {
DangerouslyRemoveGdprFields bool
Target managementpb.DeploymentTarget
Force bool
}
type EventMetadata ¶
type EventMetadata struct {
CorrelationId string
CausationId string
UserId string
Target deliverypb.DeploymentTarget
}
type FieldFilter ¶
type Filter ¶
type Filter struct {
// all these field filters have to match
Fields map[string]FieldFilter
// these filters will be calculated using the and operator
And []Filter
// these filters will be calculated using the or operator
Or []Filter
}
type ManagementClient ¶
type ManagementClient interface {
DeploySchema(
ctx context.Context,
deploymentId int64,
namespace string,
projectionTypes []ObjectType,
crudTypes []ObjectType,
nestedTypes []ObjectType,
enums []EnumType,
views []View,
options *DeploymentOptions,
) error
ActivateSchema(ctx context.Context, deploymentId int64) error
ConfirmSchema(ctx context.Context, deploymentId int64) error
RollbackSchema(ctx context.Context, namespace string, target managementpb.DeploymentTarget) error
RollbackSchemaByDeployment(ctx context.Context, deploymentId int64) error
GetSchemaDeployment(ctx context.Context, deploymentId int64) (uint32, error)
Close() error
}
func NewManagementClient ¶
func NewManagementClient( conf *config.Config, ) (ManagementClient, error)
type MockDeliveryClient ¶
func (*MockDeliveryClient) Close ¶
func (c *MockDeliveryClient) Close() error
func (*MockDeliveryClient) DeleteDataByFilter ¶
func (c *MockDeliveryClient) DeleteDataByFilter( ctx context.Context, projection string, authData *AuthData, filter *Filter, eventMetadata *EventMetadata, ) (int64, error)
func (*MockDeliveryClient) DeleteDataById ¶
func (c *MockDeliveryClient) DeleteDataById( ctx context.Context, projection string, authData *AuthData, id string, eventMetadata *EventMetadata, ) (int64, error)
func (*MockDeliveryClient) GetData ¶
func (c *MockDeliveryClient) GetData( ctx context.Context, projection string, authData *AuthData, id string, filter *Filter, returnEmptyDataIfNotFound bool, wait *Wait, useStrongConsistency bool, target deliverypb.DeploymentTarget, ) (*Data, error)
func (*MockDeliveryClient) GetDataList ¶
func (c *MockDeliveryClient) GetDataList( ctx context.Context, projection string, authData *AuthData, pagination *Pagination, filter *Filter, order []Order, useStrongConsistency bool, target deliverypb.DeploymentTarget, ) (*DataList, error)
func (*MockDeliveryClient) GetViewData ¶
func (c *MockDeliveryClient) GetViewData( ctx context.Context, view string, authData *AuthData, filter *Filter, useStrongConsistency bool, target deliverypb.DeploymentTarget, ) (*Data, error)
func (*MockDeliveryClient) GetViewDataList ¶
func (c *MockDeliveryClient) GetViewDataList( ctx context.Context, view string, authData *AuthData, pagination *Pagination, filter *Filter, order []Order, useStrongConsistency bool, target deliverypb.DeploymentTarget, ) (*DataList, error)
func (*MockDeliveryClient) UpsertData ¶
func (c *MockDeliveryClient) UpsertData( ctx context.Context, projection string, authData *AuthData, id string, payload Data, eventMetadata *EventMetadata, ) (*UpsertResponse, error)
type MockManagementClient ¶
func (*MockManagementClient) ActivateSchema ¶ added in v0.31.7
func (c *MockManagementClient) ActivateSchema(ctx context.Context, deploymentId int64) error
func (*MockManagementClient) Close ¶
func (c *MockManagementClient) Close() error
func (*MockManagementClient) ConfirmSchema ¶
func (c *MockManagementClient) ConfirmSchema(ctx context.Context, deploymentId int64) error
func (*MockManagementClient) DeploySchema ¶
func (c *MockManagementClient) DeploySchema( ctx context.Context, deploymentId int64, namespace string, projectionTypes []ObjectType, crudTypes []ObjectType, nestedTypes []ObjectType, enums []EnumType, views []View, options *DeploymentOptions, ) error
func (*MockManagementClient) GetSchemaDeployment ¶
func (*MockManagementClient) RollbackSchema ¶
func (c *MockManagementClient) RollbackSchema(ctx context.Context, namespace string, target managementpb.DeploymentTarget) error
func (*MockManagementClient) RollbackSchemaByDeployment ¶ added in v0.31.8
func (c *MockManagementClient) RollbackSchemaByDeployment(ctx context.Context, deploymentId int64) error
type ObjectType ¶
type ObjectType struct {
Name string
Directives []TypeDirective
Fields []TypeField
}
type Pagination ¶
type TypeArgument ¶
type TypeDirective ¶
type TypeDirective struct {
Name string
Arguments []TypeArgument
}
type TypeField ¶
type TypeField struct {
Name string
Type []string
Directives []TypeDirective
}
type UpsertResponse ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.