annotations

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiSourceType_name = map[int32]string{
		0: "EASE_GATEWAY",
		1: "OPEN_GATEWAY",
	}
	ApiSourceType_value = map[string]int32{
		"EASE_GATEWAY": 0,
		"OPEN_GATEWAY": 1,
	}
)

Enum value maps for ApiSourceType.

View Source
var (
	AuthTokenType_name = map[int32]string{
		0: "EASE_AUTH_TOKEN",
		1: "BASE_ACCESS_TOKEN",
	}
	AuthTokenType_value = map[string]int32{
		"EASE_AUTH_TOKEN":   0,
		"BASE_ACCESS_TOKEN": 1,
	}
)

Enum value maps for AuthTokenType.

View Source
var (
	SpecSourceType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "WEB",
	}
	SpecSourceType_value = map[string]int32{
		"UNSPECIFIED": 0,
		"WEB":         1,
	}
)

Enum value maps for SpecSourceType.

View Source
var (
	LoadBalancer_name = map[int32]string{
		0: "ROUND_ROBIN",
		1: "CONSISTENT",
	}
	LoadBalancer_value = map[string]int32{
		"ROUND_ROBIN": 0,
		"CONSISTENT":  1,
	}
)

Enum value maps for LoadBalancer.

View Source
var (
	OperatorType_name = map[int32]string{
		0: "OPERATOR_TYPE_UNKNOWN",
		1: "GT",
		2: "LT",
		3: "EQ",
		4: "MATCH",
		5: "NON_NIL",
		6: "LEN_GT",
		7: "LEN_LT",
		8: "LEN_EQ",
	}
	OperatorType_value = map[string]int32{
		"OPERATOR_TYPE_UNKNOWN": 0,
		"GT":                    1,
		"LT":                    2,
		"EQ":                    3,
		"MATCH":                 4,
		"NON_NIL":               5,
		"LEN_GT":                6,
		"LEN_LT":                7,
		"LEN_EQ":                8,
	}
)

Enum value maps for OperatorType.

View Source
var (
	FunctionType_name = map[int32]string{
		0: "FUNCTION_TYPE_UNKNOWN",
		1: "TRIM",
	}
	FunctionType_value = map[string]int32{
		"FUNCTION_TYPE_UNKNOWN": 0,
		"TRIM":                  1,
	}
)

Enum value maps for FunctionType.

View Source
var (
	ValueType_name = map[int32]string{
		0: "VALUE_TYPE_UNKNOWN",
		1: "NUMBER",
		2: "STRING",
		3: "OBJ",
	}
	ValueType_value = map[string]int32{
		"VALUE_TYPE_UNKNOWN": 0,
		"NUMBER":             1,
		"STRING":             2,
		"OBJ":                3,
	}
)

Enum value maps for ValueType.

View Source
var (
	// optional ease.api.HttpRule http = 108345;
	E_Http = &file_httpoptions_annotations_proto_extTypes[0]
	// optional ease.api.ApiMethod method = 108361;
	E_Method = &file_httpoptions_annotations_proto_extTypes[1]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional ease.api.ValidationRules rules = 108102;
	E_Rules = &file_httpoptions_annotations_proto_extTypes[3]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional ease.api.ServiceSpec service_spec = 108349;
	E_ServiceSpec = &file_httpoptions_annotations_proto_extTypes[2]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var File_httpoptions_annotations_proto protoreflect.FileDescriptor
View Source
var File_httpoptions_http_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ApiMethod

type ApiMethod struct {
	LoginNotRequired   bool           `protobuf:"varint,1,opt,name=login_not_required,json=loginNotRequired,proto3" json:"login_not_required,omitempty"`
	ClientSignRequired bool           `protobuf:"varint,2,opt,name=client_sign_required,json=clientSignRequired,proto3" json:"client_sign_required,omitempty"`
	HashKey            string         `protobuf:"bytes,3,opt,name=hash_key,json=hashKey,proto3" json:"hash_key,omitempty"`
	IsThirdParty       bool           `protobuf:"varint,4,opt,name=is_third_party,json=isThirdParty,proto3" json:"is_third_party,omitempty"`
	Timeout            string         `protobuf:"bytes,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	ApiSource          ApiSourceType  `protobuf:"varint,6,opt,name=api_source,json=apiSource,proto3,enum=ease.api.ApiSourceType" json:"api_source,omitempty"`
	TokenType          AuthTokenType  `protobuf:"varint,7,opt,name=token_type,json=tokenType,proto3,enum=ease.api.AuthTokenType" json:"token_type,omitempty"`
	SpecSourceType     SpecSourceType `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ApiMethod) Descriptor deprecated

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

Deprecated: Use ApiMethod.ProtoReflect.Descriptor instead.

func (*ApiMethod) GetApiSource

func (x *ApiMethod) GetApiSource() ApiSourceType

func (*ApiMethod) GetClientSignRequired

func (x *ApiMethod) GetClientSignRequired() bool

func (*ApiMethod) GetHashKey

func (x *ApiMethod) GetHashKey() string

func (*ApiMethod) GetIsThirdParty

func (x *ApiMethod) GetIsThirdParty() bool

func (*ApiMethod) GetLoginNotRequired

func (x *ApiMethod) GetLoginNotRequired() bool

func (*ApiMethod) GetSpecSourceType

func (x *ApiMethod) GetSpecSourceType() SpecSourceType

func (*ApiMethod) GetTimeout

func (x *ApiMethod) GetTimeout() string

func (*ApiMethod) GetTokenType

func (x *ApiMethod) GetTokenType() AuthTokenType

func (*ApiMethod) ProtoMessage

func (*ApiMethod) ProtoMessage()

func (*ApiMethod) ProtoReflect

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

func (*ApiMethod) Reset

func (x *ApiMethod) Reset()

func (*ApiMethod) String

func (x *ApiMethod) String() string

type ApiSourceType

type ApiSourceType int32
const (
	ApiSourceType_EASE_GATEWAY ApiSourceType = 0
	ApiSourceType_OPEN_GATEWAY ApiSourceType = 1
)

func (ApiSourceType) Descriptor

func (ApiSourceType) Enum

func (x ApiSourceType) Enum() *ApiSourceType

func (ApiSourceType) EnumDescriptor deprecated

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

Deprecated: Use ApiSourceType.Descriptor instead.

func (ApiSourceType) Number

func (ApiSourceType) String

func (x ApiSourceType) String() string

func (ApiSourceType) Type

type AuthTokenType

type AuthTokenType int32
const (
	AuthTokenType_EASE_AUTH_TOKEN   AuthTokenType = 0
	AuthTokenType_BASE_ACCESS_TOKEN AuthTokenType = 1
)

func (AuthTokenType) Descriptor

func (AuthTokenType) Enum

func (x AuthTokenType) Enum() *AuthTokenType

func (AuthTokenType) EnumDescriptor deprecated

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

Deprecated: Use AuthTokenType.Descriptor instead.

func (AuthTokenType) Number

func (AuthTokenType) String

func (x AuthTokenType) String() string

func (AuthTokenType) Type

type CustomHttpPattern

type CustomHttpPattern struct {
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomHttpPattern) Descriptor deprecated

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

Deprecated: Use CustomHttpPattern.ProtoReflect.Descriptor instead.

func (*CustomHttpPattern) GetKind

func (x *CustomHttpPattern) GetKind() string

func (*CustomHttpPattern) GetPath

func (x *CustomHttpPattern) GetPath() string

func (*CustomHttpPattern) ProtoMessage

func (*CustomHttpPattern) ProtoMessage()

func (*CustomHttpPattern) ProtoReflect

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

func (*CustomHttpPattern) Reset

func (x *CustomHttpPattern) Reset()

func (*CustomHttpPattern) String

func (x *CustomHttpPattern) String() string

type FunctionType

type FunctionType int32
const (
	FunctionType_FUNCTION_TYPE_UNKNOWN FunctionType = 0
	FunctionType_TRIM                  FunctionType = 1
)

func (FunctionType) Descriptor

func (FunctionType) Enum

func (x FunctionType) Enum() *FunctionType

func (FunctionType) EnumDescriptor deprecated

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

Deprecated: Use FunctionType.Descriptor instead.

func (FunctionType) Number

func (FunctionType) String

func (x FunctionType) String() string

func (FunctionType) Type

type Http

type Http struct {
	Rules                        []*HttpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	FullyDecodeReservedExpansion bool        `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Http) Descriptor deprecated

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

Deprecated: Use Http.ProtoReflect.Descriptor instead.

func (*Http) GetFullyDecodeReservedExpansion

func (x *Http) GetFullyDecodeReservedExpansion() bool

func (*Http) GetRules

func (x *Http) GetRules() []*HttpRule

func (*Http) ProtoMessage

func (*Http) ProtoMessage()

func (*Http) ProtoReflect

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

func (*Http) Reset

func (x *Http) Reset()

func (*Http) String

func (x *Http) String() string

type HttpRule

type HttpRule struct {
	Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
	// Types that are assignable to Pattern:
	//	*HttpRule_Get
	//	*HttpRule_Put
	//	*HttpRule_Post
	//	*HttpRule_Delete
	//	*HttpRule_Patch
	//	*HttpRule_Custom
	Pattern            isHttpRule_Pattern `protobuf_oneof:"pattern"`
	Body               string             `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"`
	ResponseBody       string             `protobuf:"bytes,12,opt,name=response_body,json=responseBody,proto3" json:"response_body,omitempty"`
	AdditionalBindings []*HttpRule        `protobuf:"bytes,11,rep,name=additional_bindings,json=additionalBindings,proto3" json:"additional_bindings,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpRule) Descriptor deprecated

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

Deprecated: Use HttpRule.ProtoReflect.Descriptor instead.

func (*HttpRule) GetAdditionalBindings

func (x *HttpRule) GetAdditionalBindings() []*HttpRule

func (*HttpRule) GetBody

func (x *HttpRule) GetBody() string

func (*HttpRule) GetCustom

func (x *HttpRule) GetCustom() *CustomHttpPattern

func (*HttpRule) GetDelete

func (x *HttpRule) GetDelete() string

func (*HttpRule) GetGet

func (x *HttpRule) GetGet() string

func (*HttpRule) GetPatch

func (x *HttpRule) GetPatch() string

func (*HttpRule) GetPattern

func (m *HttpRule) GetPattern() isHttpRule_Pattern

func (*HttpRule) GetPost

func (x *HttpRule) GetPost() string

func (*HttpRule) GetPut

func (x *HttpRule) GetPut() string

func (*HttpRule) GetResponseBody

func (x *HttpRule) GetResponseBody() string

func (*HttpRule) GetSelector

func (x *HttpRule) GetSelector() string

func (*HttpRule) ProtoMessage

func (*HttpRule) ProtoMessage()

func (*HttpRule) ProtoReflect

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

func (*HttpRule) Reset

func (x *HttpRule) Reset()

func (*HttpRule) String

func (x *HttpRule) String() string

type HttpRule_Custom

type HttpRule_Custom struct {
	Custom *CustomHttpPattern `protobuf:"bytes,8,opt,name=custom,proto3,oneof"`
}

type HttpRule_Delete

type HttpRule_Delete struct {
	Delete string `protobuf:"bytes,5,opt,name=delete,proto3,oneof"`
}

type HttpRule_Get

type HttpRule_Get struct {
	Get string `protobuf:"bytes,2,opt,name=get,proto3,oneof"`
}

type HttpRule_Patch

type HttpRule_Patch struct {
	Patch string `protobuf:"bytes,6,opt,name=patch,proto3,oneof"`
}

type HttpRule_Post

type HttpRule_Post struct {
	Post string `protobuf:"bytes,4,opt,name=post,proto3,oneof"`
}

type HttpRule_Put

type HttpRule_Put struct {
	Put string `protobuf:"bytes,3,opt,name=put,proto3,oneof"`
}

type LoadBalancer

type LoadBalancer int32
const (
	LoadBalancer_ROUND_ROBIN LoadBalancer = 0
	LoadBalancer_CONSISTENT  LoadBalancer = 1
)

func (LoadBalancer) Descriptor

func (LoadBalancer) Enum

func (x LoadBalancer) Enum() *LoadBalancer

func (LoadBalancer) EnumDescriptor deprecated

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

Deprecated: Use LoadBalancer.Descriptor instead.

func (LoadBalancer) Number

func (LoadBalancer) String

func (x LoadBalancer) String() string

func (LoadBalancer) Type

type OperatorType

type OperatorType int32
const (
	OperatorType_OPERATOR_TYPE_UNKNOWN OperatorType = 0
	OperatorType_GT                    OperatorType = 1
	OperatorType_LT                    OperatorType = 2
	OperatorType_EQ                    OperatorType = 3
	OperatorType_MATCH                 OperatorType = 4
	OperatorType_NON_NIL               OperatorType = 5
	OperatorType_LEN_GT                OperatorType = 6
	OperatorType_LEN_LT                OperatorType = 7
	OperatorType_LEN_EQ                OperatorType = 8
)

func (OperatorType) Descriptor

func (OperatorType) Enum

func (x OperatorType) Enum() *OperatorType

func (OperatorType) EnumDescriptor deprecated

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

Deprecated: Use OperatorType.Descriptor instead.

func (OperatorType) Number

func (OperatorType) String

func (x OperatorType) String() string

func (OperatorType) Type

type ServiceSpec

type ServiceSpec struct {
	ServiceId     data.ServiceId `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3,enum=data.ServiceId" json:"service_id,omitempty"`
	PortName      string         `protobuf:"bytes,2,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
	Namespace     string         `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	GenController bool           `protobuf:"varint,4,opt,name=gen_controller,json=genController,proto3" json:"gen_controller,omitempty"`
	Balancer      LoadBalancer   `protobuf:"varint,5,opt,name=balancer,proto3,enum=ease.api.LoadBalancer" json:"balancer,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceSpec) Descriptor deprecated

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

Deprecated: Use ServiceSpec.ProtoReflect.Descriptor instead.

func (*ServiceSpec) GetBalancer

func (x *ServiceSpec) GetBalancer() LoadBalancer

func (*ServiceSpec) GetGenController

func (x *ServiceSpec) GetGenController() bool

func (*ServiceSpec) GetNamespace

func (x *ServiceSpec) GetNamespace() string

func (*ServiceSpec) GetPortName

func (x *ServiceSpec) GetPortName() string

func (*ServiceSpec) GetServiceId

func (x *ServiceSpec) GetServiceId() data.ServiceId

func (*ServiceSpec) ProtoMessage

func (*ServiceSpec) ProtoMessage()

func (*ServiceSpec) ProtoReflect

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

func (*ServiceSpec) Reset

func (x *ServiceSpec) Reset()

func (*ServiceSpec) String

func (x *ServiceSpec) String() string

type SpecSourceType

type SpecSourceType int32
const (
	SpecSourceType_UNSPECIFIED SpecSourceType = 0
	SpecSourceType_WEB         SpecSourceType = 1
)

func (SpecSourceType) Descriptor

func (SpecSourceType) Enum

func (x SpecSourceType) Enum() *SpecSourceType

func (SpecSourceType) EnumDescriptor deprecated

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

Deprecated: Use SpecSourceType.Descriptor instead.

func (SpecSourceType) Number

func (SpecSourceType) String

func (x SpecSourceType) String() string

func (SpecSourceType) Type

type ValidationRule

type ValidationRule struct {
	Operator OperatorType `protobuf:"varint,1,opt,name=operator,proto3,enum=ease.api.OperatorType" json:"operator,omitempty"`
	Type     ValueType    `protobuf:"varint,2,opt,name=type,proto3,enum=ease.api.ValueType" json:"type,omitempty"`
	Value    string       `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Function FunctionType `protobuf:"varint,4,opt,name=function,proto3,enum=ease.api.FunctionType" json:"function,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidationRule) Descriptor deprecated

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

Deprecated: Use ValidationRule.ProtoReflect.Descriptor instead.

func (*ValidationRule) GetFunction

func (x *ValidationRule) GetFunction() FunctionType

func (*ValidationRule) GetOperator

func (x *ValidationRule) GetOperator() OperatorType

func (*ValidationRule) GetType

func (x *ValidationRule) GetType() ValueType

func (*ValidationRule) GetValue

func (x *ValidationRule) GetValue() string

func (*ValidationRule) ProtoMessage

func (*ValidationRule) ProtoMessage()

func (*ValidationRule) ProtoReflect

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

func (*ValidationRule) Reset

func (x *ValidationRule) Reset()

func (*ValidationRule) String

func (x *ValidationRule) String() string

type ValidationRules

type ValidationRules struct {
	Rules []*ValidationRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidationRules) Descriptor deprecated

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

Deprecated: Use ValidationRules.ProtoReflect.Descriptor instead.

func (*ValidationRules) GetRules

func (x *ValidationRules) GetRules() []*ValidationRule

func (*ValidationRules) ProtoMessage

func (*ValidationRules) ProtoMessage()

func (*ValidationRules) ProtoReflect

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

func (*ValidationRules) Reset

func (x *ValidationRules) Reset()

func (*ValidationRules) String

func (x *ValidationRules) String() string

type ValueType

type ValueType int32
const (
	ValueType_VALUE_TYPE_UNKNOWN ValueType = 0
	ValueType_NUMBER             ValueType = 1
	ValueType_STRING             ValueType = 2
	ValueType_OBJ                ValueType = 3
)

func (ValueType) Descriptor

func (ValueType) Descriptor() protoreflect.EnumDescriptor

func (ValueType) Enum

func (x ValueType) Enum() *ValueType

func (ValueType) EnumDescriptor deprecated

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

Deprecated: Use ValueType.Descriptor instead.

func (ValueType) Number

func (x ValueType) Number() protoreflect.EnumNumber

func (ValueType) String

func (x ValueType) String() string

func (ValueType) Type

Jump to

Keyboard shortcuts

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