Documentation ¶
Index ¶
- type Moirai
- func (m *Moirai) CreateRecords(ctx context.Context, records *proto.Records) (*proto.Records, error)
- func (m *Moirai) CreateSchema(ctx context.Context, req *proto.Schema) (*proto.Schema, error)
- func (m *Moirai) GetSchema(ctx context.Context, req *proto.RequestObjectById) (*proto.Schema, error)
- func (m *Moirai) UpdateRecord(ctx context.Context, req *proto.Record) (*proto.Record, error)
- func (m *Moirai) Version(context.Context, *empty.Empty) (*proto.VersionResponse, error)
- type Storage
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Moirai ¶
type Moirai struct { Storage `inject:"schema_storage"` Validator Validator `inject:"schema_validator"` }
func (*Moirai) CreateRecords ¶
func (*Moirai) CreateSchema ¶
func (*Moirai) UpdateRecord ¶
type Validator ¶
type Validator interface {
Validate(schema model.Schema, record *structpb.Struct, opts ...model.JsonValidatorOption) []errors.FieldError
}
Click to show internal directories.
Click to hide internal directories.