extensions

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthorizationMode_name = map[int32]string{
		0: "AUTHORIZATION_MODE_NO_AUTH",
		1: "AUTHORIZATION_MODE_CUSTOM",
	}
	AuthorizationMode_value = map[string]int32{
		"AUTHORIZATION_MODE_NO_AUTH": 0,
		"AUTHORIZATION_MODE_CUSTOM":  1,
	}
)

Enum value maps for AuthorizationMode.

View Source
var (
	FieldValidatorRule_name = map[int32]string{
		0: "FIELD_VALIDATOR_RULE_UNSPECIFIED",
		1: "FIELD_VALIDATOR_RULE_REGEX",
		2: "FIELD_VALIDATOR_RULE_CUSTOM",
	}
	FieldValidatorRule_value = map[string]int32{
		"FIELD_VALIDATOR_RULE_UNSPECIFIED": 0,
		"FIELD_VALIDATOR_RULE_REGEX":       1,
		"FIELD_VALIDATOR_RULE_CUSTOM":      2,
	}
)

Enum value maps for FieldValidatorRule.

View Source
var (
	NamingMode_name = map[int32]string{
		0: "NAMING_MODE_SNAKE_CASE",
		1: "NAMING_MODE_CAMEL_CASE",
	}
	NamingMode_value = map[string]int32{
		"NAMING_MODE_SNAKE_CASE": 0,
		"NAMING_MODE_CAMEL_CASE": 1,
	}
)

Enum value maps for NamingMode.

View Source
var (
	// optional mikros.extensions.MikrosEnumExtensions enum_options = 85042;
	E_EnumOptions = &file_mikros_extensions_extensions_proto_extTypes[2]
)

Extension fields to descriptorpb.EnumOptions.

View Source
var (
	// optional mikros.extensions.MikrosEnumValueExtensions enum_value_options = 85042;
	E_EnumValueOptions = &file_mikros_extensions_extensions_proto_extTypes[3]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var (
	// optional mikros.extensions.MikrosFieldExtensions field_options = 85042;
	E_FieldOptions = &file_mikros_extensions_extensions_proto_extTypes[4]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional mikros.extensions.MikrosMessageExtensions message_options = 85042;
	E_MessageOptions = &file_mikros_extensions_extensions_proto_extTypes[5]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional mikros.extensions.MikrosMethodExtensions method_options = 85042;
	E_MethodOptions = &file_mikros_extensions_extensions_proto_extTypes[1]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional mikros.extensions.MikrosServiceExtensions service_options = 85042;
	E_ServiceOptions = &file_mikros_extensions_extensions_proto_extTypes[0]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var File_mikros_extensions_extensions_proto protoreflect.FileDescriptor

Functions

func GetHttpEndpoint

func GetHttpEndpoint(rule *annotations.HttpRule) (string, string)

func LoadGoogleAnnotations

func LoadGoogleAnnotations(method *descriptor.MethodDescriptorProto) *annotations.HttpRule

func RetrieveParameters

func RetrieveParameters(endpoint string) []string

func RetrieveParametersFromAdditionalBindings

func RetrieveParametersFromAdditionalBindings(rule *annotations.HttpRule) []string

Types

type AuthorizationMode

type AuthorizationMode int32
const (
	AuthorizationMode_AUTHORIZATION_MODE_NO_AUTH AuthorizationMode = 0
	AuthorizationMode_AUTHORIZATION_MODE_CUSTOM  AuthorizationMode = 1
)

func (AuthorizationMode) Descriptor

func (AuthorizationMode) Enum

func (AuthorizationMode) EnumDescriptor deprecated

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

Deprecated: Use AuthorizationMode.Descriptor instead.

func (AuthorizationMode) Number

func (AuthorizationMode) String

func (x AuthorizationMode) String() string

func (AuthorizationMode) Type

func (*AuthorizationMode) UnmarshalJSON deprecated

func (x *AuthorizationMode) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type CustomCodeExtensions

type CustomCodeExtensions struct {
	Signature *string               `protobuf:"bytes,1,req,name=signature" json:"signature,omitempty"`
	Body      *string               `protobuf:"bytes,2,req,name=body" json:"body,omitempty"`
	Import    []*MikrosCustomImport `protobuf:"bytes,3,rep,name=import" json:"import,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomCodeExtensions) Descriptor deprecated

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

Deprecated: Use CustomCodeExtensions.ProtoReflect.Descriptor instead.

func (*CustomCodeExtensions) GetBody

func (x *CustomCodeExtensions) GetBody() string

func (*CustomCodeExtensions) GetImport

func (x *CustomCodeExtensions) GetImport() []*MikrosCustomImport

func (*CustomCodeExtensions) GetSignature

func (x *CustomCodeExtensions) GetSignature() string

func (*CustomCodeExtensions) ProtoMessage

func (*CustomCodeExtensions) ProtoMessage()

func (*CustomCodeExtensions) ProtoReflect

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

func (*CustomCodeExtensions) Reset

func (x *CustomCodeExtensions) Reset()

func (*CustomCodeExtensions) String

func (x *CustomCodeExtensions) String() string

type EnumApiExtensions

type EnumApiExtensions struct {
	Bitflag   *bool `protobuf:"varint,1,opt,name=bitflag" json:"bitflag,omitempty"`
	ErrorCode *bool `protobuf:"varint,2,opt,name=error_code,json=errorCode" json:"error_code,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumApiExtensions) Descriptor deprecated

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

Deprecated: Use EnumApiExtensions.ProtoReflect.Descriptor instead.

func (*EnumApiExtensions) GetBitflag

func (x *EnumApiExtensions) GetBitflag() bool

func (*EnumApiExtensions) GetErrorCode

func (x *EnumApiExtensions) GetErrorCode() bool

func (*EnumApiExtensions) ProtoMessage

func (*EnumApiExtensions) ProtoMessage()

func (*EnumApiExtensions) ProtoReflect

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

func (*EnumApiExtensions) Reset

func (x *EnumApiExtensions) Reset()

func (*EnumApiExtensions) String

func (x *EnumApiExtensions) String() string

type EnumEntry

type EnumEntry struct {
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumEntry) Descriptor deprecated

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

Deprecated: Use EnumEntry.ProtoReflect.Descriptor instead.

func (*EnumEntry) GetName

func (x *EnumEntry) GetName() string

func (*EnumEntry) ProtoMessage

func (*EnumEntry) ProtoMessage()

func (*EnumEntry) ProtoReflect

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

func (*EnumEntry) Reset

func (x *EnumEntry) Reset()

func (*EnumEntry) String

func (x *EnumEntry) String() string

type FieldDatabaseOptions

type FieldDatabaseOptions struct {
	Name       *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	AllowEmpty *bool   `protobuf:"varint,2,opt,name=allow_empty,json=allowEmpty" json:"allow_empty,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldDatabaseOptions) Descriptor deprecated

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

Deprecated: Use FieldDatabaseOptions.ProtoReflect.Descriptor instead.

func (*FieldDatabaseOptions) GetAllowEmpty

func (x *FieldDatabaseOptions) GetAllowEmpty() bool

func (*FieldDatabaseOptions) GetName

func (x *FieldDatabaseOptions) GetName() string

func (*FieldDatabaseOptions) ProtoMessage

func (*FieldDatabaseOptions) ProtoMessage()

func (*FieldDatabaseOptions) ProtoReflect

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

func (*FieldDatabaseOptions) Reset

func (x *FieldDatabaseOptions) Reset()

func (*FieldDatabaseOptions) String

func (x *FieldDatabaseOptions) String() string

type FieldDomainOptions

type FieldDomainOptions struct {
	Name       *string                 `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	AllowEmpty *bool                   `protobuf:"varint,2,opt,name=allow_empty,json=allowEmpty" json:"allow_empty,omitempty"`
	StructTag  []*FieldDomainStructTag `protobuf:"bytes,3,rep,name=struct_tag,json=structTag" json:"struct_tag,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldDomainOptions) Descriptor deprecated

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

Deprecated: Use FieldDomainOptions.ProtoReflect.Descriptor instead.

func (*FieldDomainOptions) GetAllowEmpty

func (x *FieldDomainOptions) GetAllowEmpty() bool

func (*FieldDomainOptions) GetName

func (x *FieldDomainOptions) GetName() string

func (*FieldDomainOptions) GetStructTag

func (x *FieldDomainOptions) GetStructTag() []*FieldDomainStructTag

func (*FieldDomainOptions) ProtoMessage

func (*FieldDomainOptions) ProtoMessage()

func (*FieldDomainOptions) ProtoReflect

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

func (*FieldDomainOptions) Reset

func (x *FieldDomainOptions) Reset()

func (*FieldDomainOptions) String

func (x *FieldDomainOptions) String() string

type FieldDomainStructTag

type FieldDomainStructTag struct {
	Name  *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldDomainStructTag) Descriptor deprecated

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

Deprecated: Use FieldDomainStructTag.ProtoReflect.Descriptor instead.

func (*FieldDomainStructTag) GetName

func (x *FieldDomainStructTag) GetName() string

func (*FieldDomainStructTag) GetValue

func (x *FieldDomainStructTag) GetValue() string

func (*FieldDomainStructTag) ProtoMessage

func (*FieldDomainStructTag) ProtoMessage()

func (*FieldDomainStructTag) ProtoReflect

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

func (*FieldDomainStructTag) Reset

func (x *FieldDomainStructTag) Reset()

func (*FieldDomainStructTag) String

func (x *FieldDomainStructTag) String() string

type FieldInboundOptions

type FieldInboundOptions struct {
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldInboundOptions) Descriptor deprecated

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

Deprecated: Use FieldInboundOptions.ProtoReflect.Descriptor instead.

func (*FieldInboundOptions) GetName

func (x *FieldInboundOptions) GetName() string

func (*FieldInboundOptions) ProtoMessage

func (*FieldInboundOptions) ProtoMessage()

func (*FieldInboundOptions) ProtoReflect

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

func (*FieldInboundOptions) Reset

func (x *FieldInboundOptions) Reset()

func (*FieldInboundOptions) String

func (x *FieldInboundOptions) String() string

type FieldOutboundOptions

type FieldOutboundOptions struct {
	Name         *string                 `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Hide         *bool                   `protobuf:"varint,2,opt,name=hide" json:"hide,omitempty"`
	Bitflag      *OutboundBitflagField   `protobuf:"bytes,3,opt,name=bitflag" json:"bitflag,omitempty"`
	AllowEmpty   *bool                   `protobuf:"varint,4,opt,name=allow_empty,json=allowEmpty" json:"allow_empty,omitempty"`
	StructTag    []*FieldDomainStructTag `protobuf:"bytes,5,rep,name=struct_tag,json=structTag" json:"struct_tag,omitempty"`
	CustomBind   *bool                   `protobuf:"varint,6,opt,name=custom_bind,json=customBind" json:"custom_bind,omitempty"`
	CustomType   *string                 `protobuf:"bytes,7,opt,name=custom_type,json=customType" json:"custom_type,omitempty"`
	CustomImport *MikrosCustomImport     `protobuf:"bytes,8,opt,name=custom_import,json=customImport" json:"custom_import,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldOutboundOptions) Descriptor deprecated

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

Deprecated: Use FieldOutboundOptions.ProtoReflect.Descriptor instead.

func (*FieldOutboundOptions) GetAllowEmpty

func (x *FieldOutboundOptions) GetAllowEmpty() bool

func (*FieldOutboundOptions) GetBitflag

func (x *FieldOutboundOptions) GetBitflag() *OutboundBitflagField

func (*FieldOutboundOptions) GetCustomBind

func (x *FieldOutboundOptions) GetCustomBind() bool

func (*FieldOutboundOptions) GetCustomImport

func (x *FieldOutboundOptions) GetCustomImport() *MikrosCustomImport

func (*FieldOutboundOptions) GetCustomType

func (x *FieldOutboundOptions) GetCustomType() string

func (*FieldOutboundOptions) GetHide

func (x *FieldOutboundOptions) GetHide() bool

func (*FieldOutboundOptions) GetName

func (x *FieldOutboundOptions) GetName() string

func (*FieldOutboundOptions) GetStructTag

func (x *FieldOutboundOptions) GetStructTag() []*FieldDomainStructTag

func (*FieldOutboundOptions) ProtoMessage

func (*FieldOutboundOptions) ProtoMessage()

func (*FieldOutboundOptions) ProtoReflect

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

func (*FieldOutboundOptions) Reset

func (x *FieldOutboundOptions) Reset()

func (*FieldOutboundOptions) String

func (x *FieldOutboundOptions) String() string

type FieldValidateOptions

type FieldValidateOptions struct {
	Rule            *FieldValidatorRule `protobuf:"varint,1,opt,name=rule,enum=mikros.extensions.FieldValidatorRule" json:"rule,omitempty"`
	RuleArgs        []string            `protobuf:"bytes,2,rep,name=rule_args,json=ruleArgs" json:"rule_args,omitempty"`
	CustomRule      *string             `protobuf:"bytes,3,opt,name=custom_rule,json=customRule" json:"custom_rule,omitempty"`
	Required        *bool               `protobuf:"varint,4,opt,name=required" json:"required,omitempty"`
	Min             *int32              `protobuf:"varint,5,opt,name=min" json:"min,omitempty"`
	Max             *int32              `protobuf:"varint,6,opt,name=max" json:"max,omitempty"`
	MaxLength       *int32              `protobuf:"varint,7,opt,name=max_length,json=maxLength" json:"max_length,omitempty"`
	Dive            *bool               `protobuf:"varint,8,opt,name=dive" json:"dive,omitempty"`
	RequiredIf      *string             `protobuf:"bytes,9,opt,name=required_if,json=requiredIf" json:"required_if,omitempty"`
	RequiredIfNot   *string             `protobuf:"bytes,10,opt,name=required_if_not,json=requiredIfNot" json:"required_if_not,omitempty"`
	RequiredWith    *string             `protobuf:"bytes,11,opt,name=required_with,json=requiredWith" json:"required_with,omitempty"`
	RequiredWithout *string             `protobuf:"bytes,12,opt,name=required_without,json=requiredWithout" json:"required_without,omitempty"`
	RequiredAll     *string             `protobuf:"bytes,13,opt,name=required_all,json=requiredAll" json:"required_all,omitempty"`
	RequiredAny     *string             `protobuf:"bytes,14,opt,name=required_any,json=requiredAny" json:"required_any,omitempty"`
	ErrorMessage    *string             `protobuf:"bytes,15,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"`
	Skip            *bool               `protobuf:"varint,16,opt,name=skip" json:"skip,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldValidateOptions) Descriptor deprecated

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

Deprecated: Use FieldValidateOptions.ProtoReflect.Descriptor instead.

func (*FieldValidateOptions) GetCustomRule

func (x *FieldValidateOptions) GetCustomRule() string

func (*FieldValidateOptions) GetDive

func (x *FieldValidateOptions) GetDive() bool

func (*FieldValidateOptions) GetErrorMessage

func (x *FieldValidateOptions) GetErrorMessage() string

func (*FieldValidateOptions) GetMax

func (x *FieldValidateOptions) GetMax() int32

func (*FieldValidateOptions) GetMaxLength

func (x *FieldValidateOptions) GetMaxLength() int32

func (*FieldValidateOptions) GetMin

func (x *FieldValidateOptions) GetMin() int32

func (*FieldValidateOptions) GetRequired

func (x *FieldValidateOptions) GetRequired() bool

func (*FieldValidateOptions) GetRequiredAll

func (x *FieldValidateOptions) GetRequiredAll() string

func (*FieldValidateOptions) GetRequiredAny

func (x *FieldValidateOptions) GetRequiredAny() string

func (*FieldValidateOptions) GetRequiredIf

func (x *FieldValidateOptions) GetRequiredIf() string

func (*FieldValidateOptions) GetRequiredIfNot

func (x *FieldValidateOptions) GetRequiredIfNot() string

func (*FieldValidateOptions) GetRequiredWith

func (x *FieldValidateOptions) GetRequiredWith() string

func (*FieldValidateOptions) GetRequiredWithout

func (x *FieldValidateOptions) GetRequiredWithout() string

func (*FieldValidateOptions) GetRule

func (*FieldValidateOptions) GetRuleArgs

func (x *FieldValidateOptions) GetRuleArgs() []string

func (*FieldValidateOptions) GetSkip

func (x *FieldValidateOptions) GetSkip() bool

func (*FieldValidateOptions) ProtoMessage

func (*FieldValidateOptions) ProtoMessage()

func (*FieldValidateOptions) ProtoReflect

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

func (*FieldValidateOptions) Reset

func (x *FieldValidateOptions) Reset()

func (*FieldValidateOptions) String

func (x *FieldValidateOptions) String() string

type FieldValidatorRule

type FieldValidatorRule int32
const (
	FieldValidatorRule_FIELD_VALIDATOR_RULE_UNSPECIFIED FieldValidatorRule = 0
	FieldValidatorRule_FIELD_VALIDATOR_RULE_REGEX       FieldValidatorRule = 1
	FieldValidatorRule_FIELD_VALIDATOR_RULE_CUSTOM      FieldValidatorRule = 2
)

func (FieldValidatorRule) Descriptor

func (FieldValidatorRule) Enum

func (FieldValidatorRule) EnumDescriptor deprecated

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

Deprecated: Use FieldValidatorRule.Descriptor instead.

func (FieldValidatorRule) Number

func (FieldValidatorRule) String

func (x FieldValidatorRule) String() string

func (FieldValidatorRule) Type

func (*FieldValidatorRule) UnmarshalJSON deprecated

func (x *FieldValidatorRule) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type HttpAuthorizationExtensions

type HttpAuthorizationExtensions struct {
	Mode           *AuthorizationMode `protobuf:"varint,1,req,name=mode,enum=mikros.extensions.AuthorizationMode" json:"mode,omitempty"`
	CustomAuthName *string            `protobuf:"bytes,2,opt,name=custom_auth_name,json=customAuthName" json:"custom_auth_name,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpAuthorizationExtensions) Descriptor deprecated

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

Deprecated: Use HttpAuthorizationExtensions.ProtoReflect.Descriptor instead.

func (*HttpAuthorizationExtensions) GetCustomAuthName

func (x *HttpAuthorizationExtensions) GetCustomAuthName() string

func (*HttpAuthorizationExtensions) GetMode

func (*HttpAuthorizationExtensions) ProtoMessage

func (*HttpAuthorizationExtensions) ProtoMessage()

func (*HttpAuthorizationExtensions) ProtoReflect

func (*HttpAuthorizationExtensions) Reset

func (x *HttpAuthorizationExtensions) Reset()

func (*HttpAuthorizationExtensions) String

func (x *HttpAuthorizationExtensions) String() string

type HttpMethodExtensions

type HttpMethodExtensions struct {
	Header  []string `protobuf:"bytes,1,rep,name=header" json:"header,omitempty"`
	AuthArg []string `protobuf:"bytes,2,rep,name=auth_arg,json=authArg" json:"auth_arg,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpMethodExtensions) Descriptor deprecated

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

Deprecated: Use HttpMethodExtensions.ProtoReflect.Descriptor instead.

func (*HttpMethodExtensions) GetAuthArg

func (x *HttpMethodExtensions) GetAuthArg() []string

func (*HttpMethodExtensions) GetHeader

func (x *HttpMethodExtensions) GetHeader() []string

func (*HttpMethodExtensions) ProtoMessage

func (*HttpMethodExtensions) ProtoMessage()

func (*HttpMethodExtensions) ProtoReflect

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

func (*HttpMethodExtensions) Reset

func (x *HttpMethodExtensions) Reset()

func (*HttpMethodExtensions) String

func (x *HttpMethodExtensions) String() string

type MessageCustomApiExtensions added in v0.2.0

type MessageCustomApiExtensions struct {
	Code []*CustomCodeExtensions `protobuf:"bytes,1,rep,name=code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageCustomApiExtensions) Descriptor deprecated added in v0.2.0

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

Deprecated: Use MessageCustomApiExtensions.ProtoReflect.Descriptor instead.

func (*MessageCustomApiExtensions) GetCode added in v0.2.0

func (*MessageCustomApiExtensions) ProtoMessage added in v0.2.0

func (*MessageCustomApiExtensions) ProtoMessage()

func (*MessageCustomApiExtensions) ProtoReflect added in v0.2.0

func (*MessageCustomApiExtensions) Reset added in v0.2.0

func (x *MessageCustomApiExtensions) Reset()

func (*MessageCustomApiExtensions) String added in v0.2.0

func (x *MessageCustomApiExtensions) String() string

type MessageDomainExtensions

type MessageDomainExtensions struct {
	DontExport *bool       `protobuf:"varint,1,opt,name=dont_export,json=dontExport" json:"dont_export,omitempty"`
	NamingMode *NamingMode `protobuf:"varint,2,opt,name=naming_mode,json=namingMode,enum=mikros.extensions.NamingMode" json:"naming_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageDomainExtensions) Descriptor deprecated

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

Deprecated: Use MessageDomainExtensions.ProtoReflect.Descriptor instead.

func (*MessageDomainExtensions) GetDontExport

func (x *MessageDomainExtensions) GetDontExport() bool

func (*MessageDomainExtensions) GetNamingMode

func (x *MessageDomainExtensions) GetNamingMode() NamingMode

func (*MessageDomainExtensions) ProtoMessage

func (*MessageDomainExtensions) ProtoMessage()

func (*MessageDomainExtensions) ProtoReflect

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

func (*MessageDomainExtensions) Reset

func (x *MessageDomainExtensions) Reset()

func (*MessageDomainExtensions) String

func (x *MessageDomainExtensions) String() string

type MessageInboundExtensions

type MessageInboundExtensions struct {
	NamingMode *NamingMode `protobuf:"varint,1,opt,name=naming_mode,json=namingMode,enum=mikros.extensions.NamingMode" json:"naming_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageInboundExtensions) Descriptor deprecated

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

Deprecated: Use MessageInboundExtensions.ProtoReflect.Descriptor instead.

func (*MessageInboundExtensions) GetNamingMode

func (x *MessageInboundExtensions) GetNamingMode() NamingMode

func (*MessageInboundExtensions) ProtoMessage

func (*MessageInboundExtensions) ProtoMessage()

func (*MessageInboundExtensions) ProtoReflect

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

func (*MessageInboundExtensions) Reset

func (x *MessageInboundExtensions) Reset()

func (*MessageInboundExtensions) String

func (x *MessageInboundExtensions) String() string

type MessageOutboundExtensions

type MessageOutboundExtensions struct {
	Export     *bool       `protobuf:"varint,1,opt,name=export" json:"export,omitempty"`
	NamingMode *NamingMode `protobuf:"varint,2,opt,name=naming_mode,json=namingMode,enum=mikros.extensions.NamingMode" json:"naming_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageOutboundExtensions) Descriptor deprecated

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

Deprecated: Use MessageOutboundExtensions.ProtoReflect.Descriptor instead.

func (*MessageOutboundExtensions) GetExport

func (x *MessageOutboundExtensions) GetExport() bool

func (*MessageOutboundExtensions) GetNamingMode

func (x *MessageOutboundExtensions) GetNamingMode() NamingMode

func (*MessageOutboundExtensions) ProtoMessage

func (*MessageOutboundExtensions) ProtoMessage()

func (*MessageOutboundExtensions) ProtoReflect

func (*MessageOutboundExtensions) Reset

func (x *MessageOutboundExtensions) Reset()

func (*MessageOutboundExtensions) String

func (x *MessageOutboundExtensions) String() string

type MessageWireInputExtensions

type MessageWireInputExtensions struct {
	Export *bool `protobuf:"varint,1,opt,name=export" json:"export,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageWireInputExtensions) Descriptor deprecated

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

Deprecated: Use MessageWireInputExtensions.ProtoReflect.Descriptor instead.

func (*MessageWireInputExtensions) GetExport

func (x *MessageWireInputExtensions) GetExport() bool

func (*MessageWireInputExtensions) ProtoMessage

func (*MessageWireInputExtensions) ProtoMessage()

func (*MessageWireInputExtensions) ProtoReflect

func (*MessageWireInputExtensions) Reset

func (x *MessageWireInputExtensions) Reset()

func (*MessageWireInputExtensions) String

func (x *MessageWireInputExtensions) String() string

type MikrosCustomImport

type MikrosCustomImport struct {
	Alias *string `protobuf:"bytes,1,opt,name=alias" json:"alias,omitempty"`
	Name  *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*MikrosCustomImport) Descriptor deprecated

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

Deprecated: Use MikrosCustomImport.ProtoReflect.Descriptor instead.

func (*MikrosCustomImport) GetAlias

func (x *MikrosCustomImport) GetAlias() string

func (*MikrosCustomImport) GetName

func (x *MikrosCustomImport) GetName() string

func (*MikrosCustomImport) ProtoMessage

func (*MikrosCustomImport) ProtoMessage()

func (*MikrosCustomImport) ProtoReflect

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

func (*MikrosCustomImport) Reset

func (x *MikrosCustomImport) Reset()

func (*MikrosCustomImport) String

func (x *MikrosCustomImport) String() string

type MikrosEnumExtensions

type MikrosEnumExtensions struct {
	Api *EnumApiExtensions `protobuf:"bytes,1,opt,name=api" json:"api,omitempty"`
	// contains filtered or unexported fields
}

func (*MikrosEnumExtensions) Descriptor deprecated

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

Deprecated: Use MikrosEnumExtensions.ProtoReflect.Descriptor instead.

func (*MikrosEnumExtensions) GetApi

func (*MikrosEnumExtensions) ProtoMessage

func (*MikrosEnumExtensions) ProtoMessage()

func (*MikrosEnumExtensions) ProtoReflect

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

func (*MikrosEnumExtensions) Reset

func (x *MikrosEnumExtensions) Reset()

func (*MikrosEnumExtensions) String

func (x *MikrosEnumExtensions) String() string

type MikrosEnumValueExtensions

type MikrosEnumValueExtensions struct {
	Entry *EnumEntry `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*MikrosEnumValueExtensions) Descriptor deprecated

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

Deprecated: Use MikrosEnumValueExtensions.ProtoReflect.Descriptor instead.

func (*MikrosEnumValueExtensions) GetEntry

func (x *MikrosEnumValueExtensions) GetEntry() *EnumEntry

func (*MikrosEnumValueExtensions) ProtoMessage

func (*MikrosEnumValueExtensions) ProtoMessage()

func (*MikrosEnumValueExtensions) ProtoReflect

func (*MikrosEnumValueExtensions) Reset

func (x *MikrosEnumValueExtensions) Reset()

func (*MikrosEnumValueExtensions) String

func (x *MikrosEnumValueExtensions) String() string

type MikrosFieldExtensions

type MikrosFieldExtensions struct {
	Domain   *FieldDomainOptions   `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
	Database *FieldDatabaseOptions `protobuf:"bytes,2,opt,name=database" json:"database,omitempty"`
	Inbound  *FieldInboundOptions  `protobuf:"bytes,3,opt,name=inbound" json:"inbound,omitempty"`
	Outbound *FieldOutboundOptions `protobuf:"bytes,4,opt,name=outbound" json:"outbound,omitempty"`
	Validate *FieldValidateOptions `protobuf:"bytes,5,opt,name=validate" json:"validate,omitempty"`
	// contains filtered or unexported fields
}

func (*MikrosFieldExtensions) Descriptor deprecated

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

Deprecated: Use MikrosFieldExtensions.ProtoReflect.Descriptor instead.

func (*MikrosFieldExtensions) GetDatabase

func (x *MikrosFieldExtensions) GetDatabase() *FieldDatabaseOptions

func (*MikrosFieldExtensions) GetDomain

func (x *MikrosFieldExtensions) GetDomain() *FieldDomainOptions

func (*MikrosFieldExtensions) GetInbound

func (x *MikrosFieldExtensions) GetInbound() *FieldInboundOptions

func (*MikrosFieldExtensions) GetOutbound

func (x *MikrosFieldExtensions) GetOutbound() *FieldOutboundOptions

func (*MikrosFieldExtensions) GetValidate

func (x *MikrosFieldExtensions) GetValidate() *FieldValidateOptions

func (*MikrosFieldExtensions) ProtoMessage

func (*MikrosFieldExtensions) ProtoMessage()

func (*MikrosFieldExtensions) ProtoReflect

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

func (*MikrosFieldExtensions) Reset

func (x *MikrosFieldExtensions) Reset()

func (*MikrosFieldExtensions) String

func (x *MikrosFieldExtensions) String() string

type MikrosMessageExtensions

type MikrosMessageExtensions struct {
	Domain    *MessageDomainExtensions    `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
	CustomApi *MessageCustomApiExtensions `protobuf:"bytes,2,opt,name=custom_api,json=customApi" json:"custom_api,omitempty"`
	Inbound   *MessageInboundExtensions   `protobuf:"bytes,3,opt,name=inbound" json:"inbound,omitempty"`
	Outbound  *MessageOutboundExtensions  `protobuf:"bytes,4,opt,name=outbound" json:"outbound,omitempty"`
	WireInput *MessageWireInputExtensions `protobuf:"bytes,5,opt,name=wire_input,json=wireInput" json:"wire_input,omitempty"`
	// contains filtered or unexported fields
}

func LoadMessageExtensions

func LoadMessageExtensions(message *descriptor.DescriptorProto) *MikrosMessageExtensions

func (*MikrosMessageExtensions) Descriptor deprecated

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

Deprecated: Use MikrosMessageExtensions.ProtoReflect.Descriptor instead.

func (*MikrosMessageExtensions) GetCustomApi added in v0.2.0

func (*MikrosMessageExtensions) GetDomain

func (*MikrosMessageExtensions) GetInbound

func (*MikrosMessageExtensions) GetOutbound

func (*MikrosMessageExtensions) GetWireInput

func (*MikrosMessageExtensions) ProtoMessage

func (*MikrosMessageExtensions) ProtoMessage()

func (*MikrosMessageExtensions) ProtoReflect

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

func (*MikrosMessageExtensions) Reset

func (x *MikrosMessageExtensions) Reset()

func (*MikrosMessageExtensions) String

func (x *MikrosMessageExtensions) String() string

type MikrosMethodExtensions

type MikrosMethodExtensions struct {
	Http *HttpMethodExtensions `protobuf:"bytes,1,opt,name=http" json:"http,omitempty"`
	// contains filtered or unexported fields
}

func (*MikrosMethodExtensions) Descriptor deprecated

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

Deprecated: Use MikrosMethodExtensions.ProtoReflect.Descriptor instead.

func (*MikrosMethodExtensions) GetHttp

func (*MikrosMethodExtensions) ProtoMessage

func (*MikrosMethodExtensions) ProtoMessage()

func (*MikrosMethodExtensions) ProtoReflect

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

func (*MikrosMethodExtensions) Reset

func (x *MikrosMethodExtensions) Reset()

func (*MikrosMethodExtensions) String

func (x *MikrosMethodExtensions) String() string

type MikrosServiceExtensions

type MikrosServiceExtensions struct {
	Authorization *HttpAuthorizationExtensions `protobuf:"bytes,1,opt,name=authorization" json:"authorization,omitempty"`
	// contains filtered or unexported fields
}

func (*MikrosServiceExtensions) Descriptor deprecated

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

Deprecated: Use MikrosServiceExtensions.ProtoReflect.Descriptor instead.

func (*MikrosServiceExtensions) GetAuthorization

func (*MikrosServiceExtensions) ProtoMessage

func (*MikrosServiceExtensions) ProtoMessage()

func (*MikrosServiceExtensions) ProtoReflect

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

func (*MikrosServiceExtensions) Reset

func (x *MikrosServiceExtensions) Reset()

func (*MikrosServiceExtensions) String

func (x *MikrosServiceExtensions) String() string

type NamingMode

type NamingMode int32
const (
	NamingMode_NAMING_MODE_SNAKE_CASE NamingMode = 0
	NamingMode_NAMING_MODE_CAMEL_CASE NamingMode = 1
)

func (NamingMode) Descriptor

func (NamingMode) Descriptor() protoreflect.EnumDescriptor

func (NamingMode) Enum

func (x NamingMode) Enum() *NamingMode

func (NamingMode) EnumDescriptor deprecated

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

Deprecated: Use NamingMode.Descriptor instead.

func (NamingMode) Number

func (x NamingMode) Number() protoreflect.EnumNumber

func (NamingMode) String

func (x NamingMode) String() string

func (NamingMode) Type

func (*NamingMode) UnmarshalJSON deprecated

func (x *NamingMode) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type OutboundBitflagField

type OutboundBitflagField struct {

	// Values must point to a valid enum name which holds all the values that the
	// bitflag represents.
	Values *string `protobuf:"bytes,1,req,name=values" json:"values,omitempty"`
	// Sets an optional prefix string that is present in all values that represents
	// the bitflag.
	Prefix *string `protobuf:"bytes,2,req,name=prefix" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*OutboundBitflagField) Descriptor deprecated

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

Deprecated: Use OutboundBitflagField.ProtoReflect.Descriptor instead.

func (*OutboundBitflagField) GetPrefix

func (x *OutboundBitflagField) GetPrefix() string

func (*OutboundBitflagField) GetValues

func (x *OutboundBitflagField) GetValues() string

func (*OutboundBitflagField) ProtoMessage

func (*OutboundBitflagField) ProtoMessage()

func (*OutboundBitflagField) ProtoReflect

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

func (*OutboundBitflagField) Reset

func (x *OutboundBitflagField) Reset()

func (*OutboundBitflagField) String

func (x *OutboundBitflagField) String() string

Jump to

Keyboard shortcuts

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