v1

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2025 License: Apache-2.0 Imports: 17 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Operation_name = map[int32]string{
		0: "NONE",
		1: "SELECT",
		2: "DELETE",
		3: "UPDATE",
		4: "INSERT",
	}
	Operation_value = map[string]int32{
		"NONE":   0,
		"SELECT": 1,
		"DELETE": 2,
		"UPDATE": 3,
		"INSERT": 4,
	}
)

Enum value maps for Operation.

View Source
var File_core_registry_key_value_v1_data_definition_lang_proto protoreflect.FileDescriptor
View Source
var File_core_registry_key_value_v1_models_proto protoreflect.FileDescriptor
View Source
var File_core_registry_key_value_v1_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DeleteRequest

type DeleteRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" bun:"key" csv:"key" pg:"key" yaml:"key"`
	// value is only used to determine the underlying type, the content within the type does not matter
	Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value" bun:"value" csv:"value" pg:"value" yaml:"value"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

func (*DeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetKey

func (x *DeleteRequest) GetKey() string

func (*DeleteRequest) GetValue added in v0.6.1

func (x *DeleteRequest) GetValue() *anypb.Any

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (m *DeleteRequest) Validate() error

Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRequest) ValidateAll

func (m *DeleteRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRequestMultiError, or nil if none found.

type DeleteRequestMultiError

type DeleteRequestMultiError []error

DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRequestMultiError) AllErrors

func (m DeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRequestMultiError) Error

func (m DeleteRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteRequestValidationError

type DeleteRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

Reason function returns reason value.

type DeleteResponse

type DeleteResponse struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" bun:"key" csv:"key" pg:"key" yaml:"key"`
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

func (*DeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetKey

func (x *DeleteResponse) GetKey() string

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

func (x *DeleteResponse) ProtoReflect() protoreflect.Message

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

func (*DeleteResponse) Validate

func (m *DeleteResponse) Validate() error

Validate checks the field values on DeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteResponse) ValidateAll

func (m *DeleteResponse) ValidateAll() error

ValidateAll checks the field values on DeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteResponseMultiError, or nil if none found.

type DeleteResponseMultiError

type DeleteResponseMultiError []error

DeleteResponseMultiError is an error wrapping multiple validation errors returned by DeleteResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteResponseMultiError) AllErrors

func (m DeleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResponseMultiError) Error

func (m DeleteResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteResponseValidationError

type DeleteResponseValidationError struct {
	// contains filtered or unexported fields
}

DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.

func (DeleteResponseValidationError) Cause

Cause function returns cause value.

func (DeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteResponseValidationError) ErrorName

func (e DeleteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteResponseValidationError) Field

Field function returns field value.

func (DeleteResponseValidationError) Key

Key function returns key value.

func (DeleteResponseValidationError) Reason

Reason function returns reason value.

type Equal added in v1.2.0

type Equal struct {

	// of the `Kind` being queried return the values that match the key/value pairs below
	Match map[string]string `` /* 189-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Equal) Descriptor deprecated added in v1.2.0

func (*Equal) Descriptor() ([]byte, []int)

Deprecated: Use Equal.ProtoReflect.Descriptor instead.

func (*Equal) GetMatch added in v1.2.0

func (x *Equal) GetMatch() map[string]string

func (*Equal) ProtoMessage added in v1.2.0

func (*Equal) ProtoMessage()

func (*Equal) ProtoReflect added in v1.2.0

func (x *Equal) ProtoReflect() protoreflect.Message

func (*Equal) Reset added in v1.2.0

func (x *Equal) Reset()

func (*Equal) String added in v1.2.0

func (x *Equal) String() string

func (*Equal) Validate added in v1.2.0

func (m *Equal) Validate() error

Validate checks the field values on Equal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Equal) ValidateAll added in v1.2.0

func (m *Equal) ValidateAll() error

ValidateAll checks the field values on Equal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EqualMultiError, or nil if none found.

type EqualMultiError added in v1.2.0

type EqualMultiError []error

EqualMultiError is an error wrapping multiple validation errors returned by Equal.ValidateAll() if the designated constraints aren't met.

func (EqualMultiError) AllErrors added in v1.2.0

func (m EqualMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EqualMultiError) Error added in v1.2.0

func (m EqualMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EqualValidationError added in v1.2.0

type EqualValidationError struct {
	// contains filtered or unexported fields
}

EqualValidationError is the validation error returned by Equal.Validate if the designated constraints aren't met.

func (EqualValidationError) Cause added in v1.2.0

func (e EqualValidationError) Cause() error

Cause function returns cause value.

func (EqualValidationError) Error added in v1.2.0

func (e EqualValidationError) Error() string

Error satisfies the builtin error interface

func (EqualValidationError) ErrorName added in v1.2.0

func (e EqualValidationError) ErrorName() string

ErrorName returns error name.

func (EqualValidationError) Field added in v1.2.0

func (e EqualValidationError) Field() string

Field function returns field value.

func (EqualValidationError) Key added in v1.2.0

func (e EqualValidationError) Key() bool

Key function returns key value.

func (EqualValidationError) Reason added in v1.2.0

func (e EqualValidationError) Reason() string

Reason function returns reason value.

type GetRequest

type GetRequest struct {
	Key   string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key" bun:"key" csv:"key" pg:"key" yaml:"key"`
	Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value" bun:"value" csv:"value" pg:"value" yaml:"value"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

func (*GetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetKey

func (x *GetRequest) GetKey() string

func (*GetRequest) GetValue

func (x *GetRequest) GetValue() *anypb.Any

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

func (x *GetRequest) ProtoReflect() protoreflect.Message

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

func (*GetRequest) Validate

func (m *GetRequest) Validate() error

Validate checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRequest) ValidateAll

func (m *GetRequest) ValidateAll() error

ValidateAll checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRequestMultiError, or nil if none found.

type GetRequestMultiError

type GetRequestMultiError []error

GetRequestMultiError is an error wrapping multiple validation errors returned by GetRequest.ValidateAll() if the designated constraints aren't met.

func (GetRequestMultiError) AllErrors

func (m GetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRequestMultiError) Error

func (m GetRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRequestValidationError

type GetRequestValidationError struct {
	// contains filtered or unexported fields
}

GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.

func (GetRequestValidationError) Cause

func (e GetRequestValidationError) Cause() error

Cause function returns cause value.

func (GetRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field

Field function returns field value.

func (GetRequestValidationError) Key

Key function returns key value.

func (GetRequestValidationError) Reason

func (e GetRequestValidationError) Reason() string

Reason function returns reason value.

type GetResponse

type GetResponse struct {
	Value *anypb.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value" bun:"value" csv:"value" pg:"value" yaml:"value"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

func (*GetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetValue

func (x *GetResponse) GetValue() *anypb.Any

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

func (x *GetResponse) ProtoReflect() protoreflect.Message

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

func (*GetResponse) Validate

func (m *GetResponse) Validate() error

Validate checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetResponse) ValidateAll

func (m *GetResponse) ValidateAll() error

ValidateAll checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetResponseMultiError, or nil if none found.

type GetResponseMultiError

type GetResponseMultiError []error

GetResponseMultiError is an error wrapping multiple validation errors returned by GetResponse.ValidateAll() if the designated constraints aren't met.

func (GetResponseMultiError) AllErrors

func (m GetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetResponseMultiError) Error

func (m GetResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetResponseValidationError

type GetResponseValidationError struct {
	// contains filtered or unexported fields
}

GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.

func (GetResponseValidationError) Cause

Cause function returns cause value.

func (GetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field

Field function returns field value.

func (GetResponseValidationError) Key

Key function returns key value.

func (GetResponseValidationError) Reason

Reason function returns reason value.

type ID added in v1.2.0

type ID struct {

	// generated system uuid
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid" bun:"uuid" csv:"uuid" pg:"uuid" yaml:"uuid"`
	// contains filtered or unexported fields
}

Standard ID to be used in the whole system

func (*ID) Descriptor deprecated added in v1.2.0

func (*ID) Descriptor() ([]byte, []int)

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetUuid added in v1.2.0

func (x *ID) GetUuid() string

func (*ID) ProtoMessage added in v1.2.0

func (*ID) ProtoMessage()

func (*ID) ProtoReflect added in v1.2.0

func (x *ID) ProtoReflect() protoreflect.Message

func (*ID) Reset added in v1.2.0

func (x *ID) Reset()

func (*ID) String added in v1.2.0

func (x *ID) String() string

func (*ID) Validate added in v1.2.0

func (m *ID) Validate() error

Validate checks the field values on ID with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ID) ValidateAll added in v1.2.0

func (m *ID) ValidateAll() error

ValidateAll checks the field values on ID with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IDMultiError, or nil if none found.

type IDMultiError added in v1.2.0

type IDMultiError []error

IDMultiError is an error wrapping multiple validation errors returned by ID.ValidateAll() if the designated constraints aren't met.

func (IDMultiError) AllErrors added in v1.2.0

func (m IDMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IDMultiError) Error added in v1.2.0

func (m IDMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type IDValidationError added in v1.2.0

type IDValidationError struct {
	// contains filtered or unexported fields
}

IDValidationError is the validation error returned by ID.Validate if the designated constraints aren't met.

func (IDValidationError) Cause added in v1.2.0

func (e IDValidationError) Cause() error

Cause function returns cause value.

func (IDValidationError) Error added in v1.2.0

func (e IDValidationError) Error() string

Error satisfies the builtin error interface

func (IDValidationError) ErrorName added in v1.2.0

func (e IDValidationError) ErrorName() string

ErrorName returns error name.

func (IDValidationError) Field added in v1.2.0

func (e IDValidationError) Field() string

Field function returns field value.

func (IDValidationError) Key added in v1.2.0

func (e IDValidationError) Key() bool

Key function returns key value.

func (IDValidationError) Reason added in v1.2.0

func (e IDValidationError) Reason() string

Reason function returns reason value.

type ListRequest

type ListRequest struct {
	Value *anypb.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value" bun:"value" csv:"value" pg:"value" yaml:"value"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetValue

func (x *ListRequest) GetValue() *anypb.Any

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

func (*ListRequest) Validate

func (m *ListRequest) Validate() error

Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListRequest) ValidateAll

func (m *ListRequest) ValidateAll() error

ValidateAll checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRequestMultiError, or nil if none found.

type ListRequestMultiError

type ListRequestMultiError []error

ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.

func (ListRequestMultiError) AllErrors

func (m ListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRequestMultiError) Error

func (m ListRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListRequestValidationError

type ListRequestValidationError struct {
	// contains filtered or unexported fields
}

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

Reason function returns reason value.

type ListResponse

type ListResponse struct {
	Values map[string]*anypb.Any `` /* 195-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetValues

func (x *ListResponse) GetValues() map[string]*anypb.Any

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

func (*ListResponse) Validate

func (m *ListResponse) Validate() error

Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListResponse) ValidateAll

func (m *ListResponse) ValidateAll() error

ValidateAll checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListResponseMultiError, or nil if none found.

type ListResponseMultiError

type ListResponseMultiError []error

ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.

func (ListResponseMultiError) AllErrors

func (m ListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResponseMultiError) Error

func (m ListResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListResponseValidationError

type ListResponseValidationError struct {
	// contains filtered or unexported fields
}

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

type Operation added in v1.2.0

type Operation int32
const (
	// No operation is specified, this is the default value.
	Operation_NONE Operation = 0
	// Select is a query that can be used to search for specific objects in `blueprint`.
	// A kind is supplied to the query and it can be used to return all objects of that kind.
	// A singular `Where` clause is used to filter the results.
	Operation_SELECT Operation = 1 // `select * from `kind` where id = "123"`
	Operation_DELETE Operation = 2 // `delete from `kind` where id = "123"`
	Operation_UPDATE Operation = 3 // `update `kind` set name = "new name" where id = "123"`
	Operation_INSERT Operation = 4 // `insert into `kind` (name, description) values ("new name", "new description")`
)

func (Operation) Descriptor added in v1.2.0

func (Operation) Descriptor() protoreflect.EnumDescriptor

func (Operation) Enum added in v1.2.0

func (x Operation) Enum() *Operation

func (Operation) EnumDescriptor deprecated added in v1.2.0

func (Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation.Descriptor instead.

func (Operation) Number added in v1.2.0

func (x Operation) Number() protoreflect.EnumNumber

func (Operation) String added in v1.2.0

func (x Operation) String() string

func (Operation) Type added in v1.2.0

type SetRequest

type SetRequest struct {
	Key   string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key" bun:"key" csv:"key" pg:"key" yaml:"key"`
	Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value" bun:"value" csv:"value" pg:"value" yaml:"value"`
	// contains filtered or unexported fields
}

func (*SetRequest) Descriptor deprecated

func (*SetRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.

func (*SetRequest) GetKey

func (x *SetRequest) GetKey() string

func (*SetRequest) GetValue

func (x *SetRequest) GetValue() *anypb.Any

func (*SetRequest) ProtoMessage

func (*SetRequest) ProtoMessage()

func (*SetRequest) ProtoReflect

func (x *SetRequest) ProtoReflect() protoreflect.Message

func (*SetRequest) Reset

func (x *SetRequest) Reset()

func (*SetRequest) String

func (x *SetRequest) String() string

func (*SetRequest) Validate

func (m *SetRequest) Validate() error

Validate checks the field values on SetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetRequest) ValidateAll

func (m *SetRequest) ValidateAll() error

ValidateAll checks the field values on SetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetRequestMultiError, or nil if none found.

type SetRequestMultiError

type SetRequestMultiError []error

SetRequestMultiError is an error wrapping multiple validation errors returned by SetRequest.ValidateAll() if the designated constraints aren't met.

func (SetRequestMultiError) AllErrors

func (m SetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetRequestMultiError) Error

func (m SetRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetRequestValidationError

type SetRequestValidationError struct {
	// contains filtered or unexported fields
}

SetRequestValidationError is the validation error returned by SetRequest.Validate if the designated constraints aren't met.

func (SetRequestValidationError) Cause

func (e SetRequestValidationError) Cause() error

Cause function returns cause value.

func (SetRequestValidationError) Error

Error satisfies the builtin error interface

func (SetRequestValidationError) ErrorName

func (e SetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SetRequestValidationError) Field

Field function returns field value.

func (SetRequestValidationError) Key

Key function returns key value.

func (SetRequestValidationError) Reason

func (e SetRequestValidationError) Reason() string

Reason function returns reason value.

type SetResponse

type SetResponse struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" bun:"key" csv:"key" pg:"key" yaml:"key"`
	// contains filtered or unexported fields
}

func (*SetResponse) Descriptor deprecated

func (*SetResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.

func (*SetResponse) GetKey

func (x *SetResponse) GetKey() string

func (*SetResponse) ProtoMessage

func (*SetResponse) ProtoMessage()

func (*SetResponse) ProtoReflect

func (x *SetResponse) ProtoReflect() protoreflect.Message

func (*SetResponse) Reset

func (x *SetResponse) Reset()

func (*SetResponse) String

func (x *SetResponse) String() string

func (*SetResponse) Validate

func (m *SetResponse) Validate() error

Validate checks the field values on SetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetResponse) ValidateAll

func (m *SetResponse) ValidateAll() error

ValidateAll checks the field values on SetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetResponseMultiError, or nil if none found.

type SetResponseMultiError

type SetResponseMultiError []error

SetResponseMultiError is an error wrapping multiple validation errors returned by SetResponse.ValidateAll() if the designated constraints aren't met.

func (SetResponseMultiError) AllErrors

func (m SetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetResponseMultiError) Error

func (m SetResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetResponseValidationError

type SetResponseValidationError struct {
	// contains filtered or unexported fields
}

SetResponseValidationError is the validation error returned by SetResponse.Validate if the designated constraints aren't met.

func (SetResponseValidationError) Cause

Cause function returns cause value.

func (SetResponseValidationError) Error

Error satisfies the builtin error interface

func (SetResponseValidationError) ErrorName

func (e SetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SetResponseValidationError) Field

Field function returns field value.

func (SetResponseValidationError) Key

Key function returns key value.

func (SetResponseValidationError) Reason

Reason function returns reason value.

type Statement added in v1.2.0

type Statement struct {

	// select * from `kind`
	Kind *anypb.Any `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind" bun:"kind" csv:"kind" pg:"kind" yaml:"kind"`
	// The operation to perform on the `kind` object
	Operation Operation `` /* 168-byte string literal not displayed */
	// The `where` clause is used to filter the results of the query.
	//
	// Types that are assignable to Where:
	//
	//	*Statement_IsAll
	//	*Statement_Id
	//	*Statement_KeyVal
	Where isStatement_Where `protobuf_oneof:"where"`
	// contains filtered or unexported fields
}

Statement is the root node of the query. It's the entry point to the query system.

func (*Statement) Descriptor deprecated added in v1.2.0

func (*Statement) Descriptor() ([]byte, []int)

Deprecated: Use Statement.ProtoReflect.Descriptor instead.

func (*Statement) GetId added in v1.2.0

func (x *Statement) GetId() *ID

func (*Statement) GetIsAll added in v1.2.0

func (x *Statement) GetIsAll() bool

func (*Statement) GetKeyVal added in v1.2.0

func (x *Statement) GetKeyVal() *Equal

func (*Statement) GetKind added in v1.2.0

func (x *Statement) GetKind() *anypb.Any

func (*Statement) GetOperation added in v1.2.0

func (x *Statement) GetOperation() Operation

func (*Statement) GetWhere added in v1.2.0

func (m *Statement) GetWhere() isStatement_Where

func (*Statement) ProtoMessage added in v1.2.0

func (*Statement) ProtoMessage()

func (*Statement) ProtoReflect added in v1.2.0

func (x *Statement) ProtoReflect() protoreflect.Message

func (*Statement) Reset added in v1.2.0

func (x *Statement) Reset()

func (*Statement) String added in v1.2.0

func (x *Statement) String() string

func (*Statement) Validate added in v1.2.0

func (m *Statement) Validate() error

Validate checks the field values on Statement with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Statement) ValidateAll added in v1.2.0

func (m *Statement) ValidateAll() error

ValidateAll checks the field values on Statement with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatementMultiError, or nil if none found.

type StatementMultiError added in v1.2.0

type StatementMultiError []error

StatementMultiError is an error wrapping multiple validation errors returned by Statement.ValidateAll() if the designated constraints aren't met.

func (StatementMultiError) AllErrors added in v1.2.0

func (m StatementMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatementMultiError) Error added in v1.2.0

func (m StatementMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StatementValidationError added in v1.2.0

type StatementValidationError struct {
	// contains filtered or unexported fields
}

StatementValidationError is the validation error returned by Statement.Validate if the designated constraints aren't met.

func (StatementValidationError) Cause added in v1.2.0

func (e StatementValidationError) Cause() error

Cause function returns cause value.

func (StatementValidationError) Error added in v1.2.0

func (e StatementValidationError) Error() string

Error satisfies the builtin error interface

func (StatementValidationError) ErrorName added in v1.2.0

func (e StatementValidationError) ErrorName() string

ErrorName returns error name.

func (StatementValidationError) Field added in v1.2.0

func (e StatementValidationError) Field() string

Field function returns field value.

func (StatementValidationError) Key added in v1.2.0

Key function returns key value.

func (StatementValidationError) Reason added in v1.2.0

func (e StatementValidationError) Reason() string

Reason function returns reason value.

type Statement_Id added in v1.2.0

type Statement_Id struct {
	// return a `kind` that matches the `ID` - `select * from courses where id = "123"
	Id *ID `protobuf:"bytes,4,opt,name=id,proto3,oneof" bun:"id" csv:"id" json:"id" pg:"id" yaml:"id"`
}

type Statement_IsAll added in v1.2.0

type Statement_IsAll struct {
	// return all `kinds` - `select * from `courses`
	IsAll bool `protobuf:"varint,3,opt,name=is_all,json=isAll,proto3,oneof" bun:"is_all" csv:"is_all" json:"is_all" pg:"is_all" yaml:"is_all"`
}

type Statement_KeyVal added in v1.2.0

type Statement_KeyVal struct {
	// return all `kind`'s that equal the key/value pairs fields
	// `select * from courses where name = "Payne Stewart"`
	KeyVal *Equal `` /* 131-byte string literal not displayed */
}

type Value

type Value struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data" bun:"data" csv:"data" pg:"data" yaml:"data"`
	// contains filtered or unexported fields
}

Value - The message that is used to save a value in the `key_value` store.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetData

func (x *Value) GetData() string

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

func (*Value) Validate

func (m *Value) Validate() error

Validate checks the field values on Value with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Value) ValidateAll

func (m *Value) ValidateAll() error

ValidateAll checks the field values on Value with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ValueMultiError, or nil if none found.

type ValueMultiError

type ValueMultiError []error

ValueMultiError is an error wrapping multiple validation errors returned by Value.ValidateAll() if the designated constraints aren't met.

func (ValueMultiError) AllErrors

func (m ValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ValueMultiError) Error

func (m ValueMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ValueValidationError

type ValueValidationError struct {
	// contains filtered or unexported fields
}

ValueValidationError is the validation error returned by Value.Validate if the designated constraints aren't met.

func (ValueValidationError) Cause

func (e ValueValidationError) Cause() error

Cause function returns cause value.

func (ValueValidationError) Error

func (e ValueValidationError) Error() string

Error satisfies the builtin error interface

func (ValueValidationError) ErrorName

func (e ValueValidationError) ErrorName() string

ErrorName returns error name.

func (ValueValidationError) Field

func (e ValueValidationError) Field() string

Field function returns field value.

func (ValueValidationError) Key

func (e ValueValidationError) Key() bool

Key function returns key value.

func (ValueValidationError) Reason

func (e ValueValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL