shikamarupb

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldType_name = map[int32]string{
		0: "NONE_FIELD",
		1: "TEXT",
		2: "EMAIL",
		3: "DATE",
		4: "MOBILE",
		5: "MULTI_SELECTION",
		6: "NUMBER",
		7: "SINGLE_SELECTION",
	}
	FieldType_value = map[string]int32{
		"NONE_FIELD":       0,
		"TEXT":             1,
		"EMAIL":            2,
		"DATE":             3,
		"MOBILE":           4,
		"MULTI_SELECTION":  5,
		"NUMBER":           6,
		"SINGLE_SELECTION": 7,
	}
)

Enum value maps for FieldType.

View Source
var (
	RuleType_name = map[int32]string{
		0: "NONE_RULE",
		1: "REQUIRED",
		2: "IS_EMAIL",
		3: "BETWEEN",
		4: "IS_DATE",
		5: "IS_MOBILE",
		6: "IS_NUMBER",
		7: "IS_STRING",
		8: "LENGTH",
		9: "MATCHES",
	}
	RuleType_value = map[string]int32{
		"NONE_RULE": 0,
		"REQUIRED":  1,
		"IS_EMAIL":  2,
		"BETWEEN":   3,
		"IS_DATE":   4,
		"IS_MOBILE": 5,
		"IS_NUMBER": 6,
		"IS_STRING": 7,
		"LENGTH":    8,
		"MATCHES":   9,
	}
)

Enum value maps for RuleType.

View Source
var File_entity_proto protoreflect.FileDescriptor
View Source
var File_field_proto protoreflect.FileDescriptor
View Source
var File_pagination_proto protoreflect.FileDescriptor
View Source
var File_record_proto protoreflect.FileDescriptor
View Source
var File_shikamaru_proto protoreflect.FileDescriptor
View Source
var ShikamaruService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shikamaru.ShikamaruService",
	HandlerType: (*ShikamaruServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetEntity",
			Handler:    _ShikamaruService_GetEntity_Handler,
		},
		{
			MethodName: "CreateRecord",
			Handler:    _ShikamaruService_CreateRecord_Handler,
		},
		{
			MethodName: "GetRecord",
			Handler:    _ShikamaruService_GetRecord_Handler,
		},
		{
			MethodName: "UpdateRecord",
			Handler:    _ShikamaruService_UpdateRecord_Handler,
		},
		{
			MethodName: "DeleteRecord",
			Handler:    _ShikamaruService_DeleteRecord_Handler,
		},
		{
			MethodName: "ListRecords",
			Handler:    _ShikamaruService_ListRecords_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "shikamaru.proto",
}

ShikamaruService_ServiceDesc is the grpc.ServiceDesc for ShikamaruService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterShikamaruServiceServer

func RegisterShikamaruServiceServer(s grpc.ServiceRegistrar, srv ShikamaruServiceServer)

Types

type BetweenConfig added in v1.12.0

type BetweenConfig struct {
	Min uint32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
	Max uint32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (*BetweenConfig) Descriptor deprecated added in v1.12.0

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

Deprecated: Use BetweenConfig.ProtoReflect.Descriptor instead.

func (*BetweenConfig) GetMax added in v1.12.0

func (x *BetweenConfig) GetMax() uint32

func (*BetweenConfig) GetMin added in v1.12.0

func (x *BetweenConfig) GetMin() uint32

func (*BetweenConfig) ProtoMessage added in v1.12.0

func (*BetweenConfig) ProtoMessage()

func (*BetweenConfig) ProtoReflect added in v1.12.0

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

func (*BetweenConfig) Reset added in v1.12.0

func (x *BetweenConfig) Reset()

func (*BetweenConfig) String added in v1.12.0

func (x *BetweenConfig) String() string

type CreateRecordRequest added in v1.3.0

type CreateRecordRequest struct {
	EntityName string  `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	Record     *Record `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRecordRequest) Descriptor deprecated added in v1.3.0

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

Deprecated: Use CreateRecordRequest.ProtoReflect.Descriptor instead.

func (*CreateRecordRequest) GetEntityName added in v1.3.0

func (x *CreateRecordRequest) GetEntityName() string

func (*CreateRecordRequest) GetRecord added in v1.3.0

func (x *CreateRecordRequest) GetRecord() *Record

func (*CreateRecordRequest) ProtoMessage added in v1.3.0

func (*CreateRecordRequest) ProtoMessage()

func (*CreateRecordRequest) ProtoReflect added in v1.3.0

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

func (*CreateRecordRequest) Reset added in v1.3.0

func (x *CreateRecordRequest) Reset()

func (*CreateRecordRequest) String added in v1.3.0

func (x *CreateRecordRequest) String() string

type CreateRecordResponse added in v1.3.0

type CreateRecordResponse struct {
	Record *Record                  `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	Errors []*RecordValidationError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRecordResponse) Descriptor deprecated added in v1.3.0

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

Deprecated: Use CreateRecordResponse.ProtoReflect.Descriptor instead.

func (*CreateRecordResponse) GetErrors added in v1.3.0

func (x *CreateRecordResponse) GetErrors() []*RecordValidationError

func (*CreateRecordResponse) GetRecord added in v1.3.0

func (x *CreateRecordResponse) GetRecord() *Record

func (*CreateRecordResponse) ProtoMessage added in v1.3.0

func (*CreateRecordResponse) ProtoMessage()

func (*CreateRecordResponse) ProtoReflect added in v1.3.0

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

func (*CreateRecordResponse) Reset added in v1.3.0

func (x *CreateRecordResponse) Reset()

func (*CreateRecordResponse) String added in v1.3.0

func (x *CreateRecordResponse) String() string

type DeleteRecordRequest added in v1.7.0

type DeleteRecordRequest struct {
	EntityName string `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	RecordId   string `protobuf:"bytes,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRecordRequest) Descriptor deprecated added in v1.7.0

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

Deprecated: Use DeleteRecordRequest.ProtoReflect.Descriptor instead.

func (*DeleteRecordRequest) GetEntityName added in v1.7.0

func (x *DeleteRecordRequest) GetEntityName() string

func (*DeleteRecordRequest) GetRecordId added in v1.7.0

func (x *DeleteRecordRequest) GetRecordId() string

func (*DeleteRecordRequest) ProtoMessage added in v1.7.0

func (*DeleteRecordRequest) ProtoMessage()

func (*DeleteRecordRequest) ProtoReflect added in v1.7.0

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

func (*DeleteRecordRequest) Reset added in v1.7.0

func (x *DeleteRecordRequest) Reset()

func (*DeleteRecordRequest) String added in v1.7.0

func (x *DeleteRecordRequest) String() string

type Entity

type Entity struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	SingularName string `protobuf:"bytes,3,opt,name=singular_name,json=singularName,proto3" json:"singular_name,omitempty"`
	PluralName   string `protobuf:"bytes,4,opt,name=plural_name,json=pluralName,proto3" json:"plural_name,omitempty"`
	// collection is the name of the collection where records
	// should be stored.
	// NOTE: it could be the table name as well,
	// depending of the type of the data store.
	Collection string   `protobuf:"bytes,5,opt,name=collection,proto3" json:"collection,omitempty"`
	Fields     []*Field `protobuf:"bytes,6,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*Entity) Descriptor deprecated

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

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetCollection added in v1.1.0

func (x *Entity) GetCollection() string

func (*Entity) GetFields

func (x *Entity) GetFields() []*Field

func (*Entity) GetId

func (x *Entity) GetId() string

func (*Entity) GetName

func (x *Entity) GetName() string

func (*Entity) GetPluralName

func (x *Entity) GetPluralName() string

func (*Entity) GetSingularName

func (x *Entity) GetSingularName() string

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

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

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

type Field

type Field struct {
	FieldType   FieldType `protobuf:"varint,1,opt,name=field_type,json=fieldType,proto3,enum=shikamaru.FieldType" json:"field_type,omitempty"`
	Name        string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Label       string    `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	Help        string    `protobuf:"bytes,4,opt,name=help,proto3" json:"help,omitempty"`
	Placeholder string    `protobuf:"bytes,5,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	Rules       []*Rule   `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetFieldType

func (x *Field) GetFieldType() FieldType

func (*Field) GetHelp

func (x *Field) GetHelp() string

func (*Field) GetLabel

func (x *Field) GetLabel() string

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetPlaceholder

func (x *Field) GetPlaceholder() string

func (*Field) GetRules

func (x *Field) GetRules() []*Rule

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type FieldType

type FieldType int32
const (
	FieldType_NONE_FIELD       FieldType = 0
	FieldType_TEXT             FieldType = 1
	FieldType_EMAIL            FieldType = 2
	FieldType_DATE             FieldType = 3
	FieldType_MOBILE           FieldType = 4
	FieldType_MULTI_SELECTION  FieldType = 5
	FieldType_NUMBER           FieldType = 6
	FieldType_SINGLE_SELECTION FieldType = 7
)

func (FieldType) Descriptor

func (FieldType) Descriptor() protoreflect.EnumDescriptor

func (FieldType) Enum

func (x FieldType) Enum() *FieldType

func (FieldType) EnumDescriptor deprecated

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

Deprecated: Use FieldType.Descriptor instead.

func (FieldType) Number

func (x FieldType) Number() protoreflect.EnumNumber

func (FieldType) String

func (x FieldType) String() string

func (FieldType) Type

type GetEntityRequest

type GetEntityRequest struct {
	EntityName string `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEntityRequest) Descriptor deprecated

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

Deprecated: Use GetEntityRequest.ProtoReflect.Descriptor instead.

func (*GetEntityRequest) GetEntityName

func (x *GetEntityRequest) GetEntityName() string

func (*GetEntityRequest) ProtoMessage

func (*GetEntityRequest) ProtoMessage()

func (*GetEntityRequest) ProtoReflect

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

func (*GetEntityRequest) Reset

func (x *GetEntityRequest) Reset()

func (*GetEntityRequest) String

func (x *GetEntityRequest) String() string

type GetEntityResponse

type GetEntityResponse struct {
	Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEntityResponse) Descriptor deprecated

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

Deprecated: Use GetEntityResponse.ProtoReflect.Descriptor instead.

func (*GetEntityResponse) GetEntity

func (x *GetEntityResponse) GetEntity() *Entity

func (*GetEntityResponse) ProtoMessage

func (*GetEntityResponse) ProtoMessage()

func (*GetEntityResponse) ProtoReflect

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

func (*GetEntityResponse) Reset

func (x *GetEntityResponse) Reset()

func (*GetEntityResponse) String

func (x *GetEntityResponse) String() string

type GetRecordRequest added in v1.5.0

type GetRecordRequest struct {
	EntityName string `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	RecordId   string `protobuf:"bytes,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecordRequest) Descriptor deprecated added in v1.5.0

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

Deprecated: Use GetRecordRequest.ProtoReflect.Descriptor instead.

func (*GetRecordRequest) GetEntityName added in v1.5.0

func (x *GetRecordRequest) GetEntityName() string

func (*GetRecordRequest) GetRecordId added in v1.5.0

func (x *GetRecordRequest) GetRecordId() string

func (*GetRecordRequest) ProtoMessage added in v1.5.0

func (*GetRecordRequest) ProtoMessage()

func (*GetRecordRequest) ProtoReflect added in v1.5.0

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

func (*GetRecordRequest) Reset added in v1.5.0

func (x *GetRecordRequest) Reset()

func (*GetRecordRequest) String added in v1.5.0

func (x *GetRecordRequest) String() string

type GetRecordResponse added in v1.5.0

type GetRecordResponse struct {
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecordResponse) Descriptor deprecated added in v1.5.0

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

Deprecated: Use GetRecordResponse.ProtoReflect.Descriptor instead.

func (*GetRecordResponse) GetRecord added in v1.5.0

func (x *GetRecordResponse) GetRecord() *Record

func (*GetRecordResponse) ProtoMessage added in v1.5.0

func (*GetRecordResponse) ProtoMessage()

func (*GetRecordResponse) ProtoReflect added in v1.5.0

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

func (*GetRecordResponse) Reset added in v1.5.0

func (x *GetRecordResponse) Reset()

func (*GetRecordResponse) String added in v1.5.0

func (x *GetRecordResponse) String() string

type LengthConfig added in v1.12.0

type LengthConfig struct {
	Min uint32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
	Max uint32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (*LengthConfig) Descriptor deprecated added in v1.12.0

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

Deprecated: Use LengthConfig.ProtoReflect.Descriptor instead.

func (*LengthConfig) GetMax added in v1.12.0

func (x *LengthConfig) GetMax() uint32

func (*LengthConfig) GetMin added in v1.12.0

func (x *LengthConfig) GetMin() uint32

func (*LengthConfig) ProtoMessage added in v1.12.0

func (*LengthConfig) ProtoMessage()

func (*LengthConfig) ProtoReflect added in v1.12.0

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

func (*LengthConfig) Reset added in v1.12.0

func (x *LengthConfig) Reset()

func (*LengthConfig) String added in v1.12.0

func (x *LengthConfig) String() string

type ListRecordsRequest added in v1.9.0

type ListRecordsRequest struct {
	EntityName string `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	Pager      *Pager `protobuf:"bytes,2,opt,name=pager,proto3" json:"pager,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecordsRequest) Descriptor deprecated added in v1.9.0

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

Deprecated: Use ListRecordsRequest.ProtoReflect.Descriptor instead.

func (*ListRecordsRequest) GetEntityName added in v1.9.0

func (x *ListRecordsRequest) GetEntityName() string

func (*ListRecordsRequest) GetPager added in v1.9.0

func (x *ListRecordsRequest) GetPager() *Pager

func (*ListRecordsRequest) ProtoMessage added in v1.9.0

func (*ListRecordsRequest) ProtoMessage()

func (*ListRecordsRequest) ProtoReflect added in v1.9.0

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

func (*ListRecordsRequest) Reset added in v1.9.0

func (x *ListRecordsRequest) Reset()

func (*ListRecordsRequest) String added in v1.9.0

func (x *ListRecordsRequest) String() string

type ListRecordsResponse added in v1.9.0

type ListRecordsResponse struct {
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	Total   uint64    `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecordsResponse) Descriptor deprecated added in v1.9.0

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

Deprecated: Use ListRecordsResponse.ProtoReflect.Descriptor instead.

func (*ListRecordsResponse) GetRecords added in v1.9.0

func (x *ListRecordsResponse) GetRecords() []*Record

func (*ListRecordsResponse) GetTotal added in v1.10.0

func (x *ListRecordsResponse) GetTotal() uint64

func (*ListRecordsResponse) ProtoMessage added in v1.9.0

func (*ListRecordsResponse) ProtoMessage()

func (*ListRecordsResponse) ProtoReflect added in v1.9.0

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

func (*ListRecordsResponse) Reset added in v1.9.0

func (x *ListRecordsResponse) Reset()

func (*ListRecordsResponse) String added in v1.9.0

func (x *ListRecordsResponse) String() string

type MatchesConfig added in v1.12.0

type MatchesConfig struct {
	Options []*anypb.Any `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchesConfig) Descriptor deprecated added in v1.12.0

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

Deprecated: Use MatchesConfig.ProtoReflect.Descriptor instead.

func (*MatchesConfig) GetOptions added in v1.12.0

func (x *MatchesConfig) GetOptions() []*anypb.Any

func (*MatchesConfig) ProtoMessage added in v1.12.0

func (*MatchesConfig) ProtoMessage()

func (*MatchesConfig) ProtoReflect added in v1.12.0

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

func (*MatchesConfig) Reset added in v1.12.0

func (x *MatchesConfig) Reset()

func (*MatchesConfig) String added in v1.12.0

func (x *MatchesConfig) String() string

type Pager added in v1.9.0

type Pager struct {
	Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*Pager) Descriptor deprecated added in v1.9.0

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

Deprecated: Use Pager.ProtoReflect.Descriptor instead.

func (*Pager) GetPage added in v1.9.0

func (x *Pager) GetPage() uint32

func (*Pager) GetSize added in v1.9.0

func (x *Pager) GetSize() uint32

func (*Pager) ProtoMessage added in v1.9.0

func (*Pager) ProtoMessage()

func (*Pager) ProtoReflect added in v1.9.0

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

func (*Pager) Reset added in v1.9.0

func (x *Pager) Reset()

func (*Pager) String added in v1.9.0

func (x *Pager) String() string

type Record

type Record struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetData

func (x *Record) GetData() []byte

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type RecordValidationError

type RecordValidationError struct {
	Field   string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordValidationError) Descriptor deprecated

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

Deprecated: Use RecordValidationError.ProtoReflect.Descriptor instead.

func (*RecordValidationError) GetField

func (x *RecordValidationError) GetField() string

func (*RecordValidationError) GetMessage

func (x *RecordValidationError) GetMessage() string

func (*RecordValidationError) ProtoMessage

func (*RecordValidationError) ProtoMessage()

func (*RecordValidationError) ProtoReflect

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

func (*RecordValidationError) Reset

func (x *RecordValidationError) Reset()

func (*RecordValidationError) String

func (x *RecordValidationError) String() string

type Rule

type Rule struct {
	RuleType RuleType `protobuf:"varint,1,opt,name=rule_type,json=ruleType,proto3,enum=shikamaru.RuleType" json:"rule_type,omitempty"`
	// Types that are assignable to Config:
	//
	//	*Rule_BetweenConfig
	//	*Rule_LengthConfig
	//	*Rule_MatchesConfig
	Config isRule_Config `protobuf_oneof:"config"`
	// contains filtered or unexported fields
}

func (*Rule) Descriptor deprecated

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetBetweenConfig added in v1.12.0

func (x *Rule) GetBetweenConfig() *BetweenConfig

func (*Rule) GetConfig added in v1.12.0

func (m *Rule) GetConfig() isRule_Config

func (*Rule) GetLengthConfig added in v1.12.0

func (x *Rule) GetLengthConfig() *LengthConfig

func (*Rule) GetMatchesConfig added in v1.12.0

func (x *Rule) GetMatchesConfig() *MatchesConfig

func (*Rule) GetRuleType

func (x *Rule) GetRuleType() RuleType

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

type RuleType

type RuleType int32
const (
	RuleType_NONE_RULE RuleType = 0
	RuleType_REQUIRED  RuleType = 1
	RuleType_IS_EMAIL  RuleType = 2
	RuleType_BETWEEN   RuleType = 3
	RuleType_IS_DATE   RuleType = 4
	RuleType_IS_MOBILE RuleType = 5
	RuleType_IS_NUMBER RuleType = 6
	RuleType_IS_STRING RuleType = 7
	RuleType_LENGTH    RuleType = 8
	RuleType_MATCHES   RuleType = 9
)

func (RuleType) Descriptor

func (RuleType) Descriptor() protoreflect.EnumDescriptor

func (RuleType) Enum

func (x RuleType) Enum() *RuleType

func (RuleType) EnumDescriptor deprecated

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

Deprecated: Use RuleType.Descriptor instead.

func (RuleType) Number

func (x RuleType) Number() protoreflect.EnumNumber

func (RuleType) String

func (x RuleType) String() string

func (RuleType) Type

type Rule_BetweenConfig added in v1.12.0

type Rule_BetweenConfig struct {
	BetweenConfig *BetweenConfig `protobuf:"bytes,2,opt,name=between_config,json=betweenConfig,proto3,oneof"`
}

type Rule_LengthConfig added in v1.12.0

type Rule_LengthConfig struct {
	LengthConfig *LengthConfig `protobuf:"bytes,3,opt,name=length_config,json=lengthConfig,proto3,oneof"`
}

type Rule_MatchesConfig added in v1.12.0

type Rule_MatchesConfig struct {
	MatchesConfig *MatchesConfig `protobuf:"bytes,4,opt,name=matches_config,json=matchesConfig,proto3,oneof"`
}

type ShikamaruServiceClient

type ShikamaruServiceClient interface {
	GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*GetEntityResponse, error)
	CreateRecord(ctx context.Context, in *CreateRecordRequest, opts ...grpc.CallOption) (*CreateRecordResponse, error)
	GetRecord(ctx context.Context, in *GetRecordRequest, opts ...grpc.CallOption) (*GetRecordResponse, error)
	UpdateRecord(ctx context.Context, in *UpdateRecordRequest, opts ...grpc.CallOption) (*UpdateRecordResponse, error)
	DeleteRecord(ctx context.Context, in *DeleteRecordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListRecords(ctx context.Context, in *ListRecordsRequest, opts ...grpc.CallOption) (*ListRecordsResponse, error)
}

ShikamaruServiceClient is the client API for ShikamaruService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ShikamaruServiceServer

ShikamaruServiceServer is the server API for ShikamaruService service. All implementations should embed UnimplementedShikamaruServiceServer for forward compatibility

type UnimplementedShikamaruServiceServer

type UnimplementedShikamaruServiceServer struct {
}

UnimplementedShikamaruServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedShikamaruServiceServer) CreateRecord added in v1.3.0

func (UnimplementedShikamaruServiceServer) DeleteRecord added in v1.7.0

func (UnimplementedShikamaruServiceServer) GetEntity

func (UnimplementedShikamaruServiceServer) GetRecord added in v1.5.0

func (UnimplementedShikamaruServiceServer) ListRecords added in v1.9.0

func (UnimplementedShikamaruServiceServer) UpdateRecord added in v1.6.0

type UnsafeShikamaruServiceServer

type UnsafeShikamaruServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeShikamaruServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShikamaruServiceServer will result in compilation errors.

type UpdateRecordRequest added in v1.6.0

type UpdateRecordRequest struct {
	EntityName string  `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	RecordId   string  `protobuf:"bytes,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	Record     *Record `protobuf:"bytes,3,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRecordRequest) Descriptor deprecated added in v1.6.0

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

Deprecated: Use UpdateRecordRequest.ProtoReflect.Descriptor instead.

func (*UpdateRecordRequest) GetEntityName added in v1.6.0

func (x *UpdateRecordRequest) GetEntityName() string

func (*UpdateRecordRequest) GetRecord added in v1.6.0

func (x *UpdateRecordRequest) GetRecord() *Record

func (*UpdateRecordRequest) GetRecordId added in v1.6.0

func (x *UpdateRecordRequest) GetRecordId() string

func (*UpdateRecordRequest) ProtoMessage added in v1.6.0

func (*UpdateRecordRequest) ProtoMessage()

func (*UpdateRecordRequest) ProtoReflect added in v1.6.0

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

func (*UpdateRecordRequest) Reset added in v1.6.0

func (x *UpdateRecordRequest) Reset()

func (*UpdateRecordRequest) String added in v1.6.0

func (x *UpdateRecordRequest) String() string

type UpdateRecordResponse added in v1.6.0

type UpdateRecordResponse struct {
	Record *Record                  `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	Errors []*RecordValidationError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRecordResponse) Descriptor deprecated added in v1.6.0

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

Deprecated: Use UpdateRecordResponse.ProtoReflect.Descriptor instead.

func (*UpdateRecordResponse) GetErrors added in v1.6.0

func (x *UpdateRecordResponse) GetErrors() []*RecordValidationError

func (*UpdateRecordResponse) GetRecord added in v1.6.0

func (x *UpdateRecordResponse) GetRecord() *Record

func (*UpdateRecordResponse) ProtoMessage added in v1.6.0

func (*UpdateRecordResponse) ProtoMessage()

func (*UpdateRecordResponse) ProtoReflect added in v1.6.0

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

func (*UpdateRecordResponse) Reset added in v1.6.0

func (x *UpdateRecordResponse) Reset()

func (*UpdateRecordResponse) String added in v1.6.0

func (x *UpdateRecordResponse) String() string

Jump to

Keyboard shortcuts

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