Documentation ¶
Index ¶
- Variables
- func OpenapiRuleServiceClientType() reflect.Type
- func OpenapiRuleServiceHandlerType() reflect.Type
- func OpenapiRuleServiceServerType() reflect.Type
- func RegisterOpenapiRuleServiceHandler(r http.Router, srv OpenapiRuleServiceHandler, opts ...http.HandleOption)
- func RegisterOpenapiRuleServiceImp(regester transport.Register, srv OpenapiRuleServiceServer, ...)
- func RegisterOpenapiRuleServiceServer(s grpc1.ServiceRegistrar, srv OpenapiRuleServiceServer, ...)
- func ServiceNames(svr ...string) []string
- func Types() []reflect.Type
- type CreateLimitRequest
- func (*CreateLimitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLimitRequest) GetEnv() string
- func (x *CreateLimitRequest) GetLimitRequest() *LimitRequest
- func (x *CreateLimitRequest) GetProjectId() string
- func (m *CreateLimitRequest) MarshalJSON() ([]byte, error)
- func (*CreateLimitRequest) ProtoMessage()
- func (x *CreateLimitRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLimitRequest) Reset()
- func (x *CreateLimitRequest) String() string
- func (m *CreateLimitRequest) UnmarshalJSON(b []byte) error
- func (m *CreateLimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *CreateLimitRequest) Validate() error
- type CreateLimitResponse
- func (*CreateLimitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLimitResponse) GetData() bool
- func (m *CreateLimitResponse) MarshalJSON() ([]byte, error)
- func (*CreateLimitResponse) ProtoMessage()
- func (x *CreateLimitResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLimitResponse) Reset()
- func (x *CreateLimitResponse) String() string
- func (m *CreateLimitResponse) UnmarshalJSON(b []byte) error
- func (m *CreateLimitResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *CreateLimitResponse) Validate() error
- type DeleteLimitRequest
- func (*DeleteLimitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteLimitRequest) GetRuleId() string
- func (m *DeleteLimitRequest) MarshalJSON() ([]byte, error)
- func (*DeleteLimitRequest) ProtoMessage()
- func (x *DeleteLimitRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteLimitRequest) Reset()
- func (x *DeleteLimitRequest) String() string
- func (m *DeleteLimitRequest) UnmarshalJSON(b []byte) error
- func (m *DeleteLimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *DeleteLimitRequest) Validate() error
- type DeleteLimitResponse
- func (*DeleteLimitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteLimitResponse) GetData() bool
- func (m *DeleteLimitResponse) MarshalJSON() ([]byte, error)
- func (*DeleteLimitResponse) ProtoMessage()
- func (x *DeleteLimitResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteLimitResponse) Reset()
- func (x *DeleteLimitResponse) String() string
- func (m *DeleteLimitResponse) UnmarshalJSON(b []byte) error
- func (m *DeleteLimitResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *DeleteLimitResponse) Validate() error
- type GetLimitsRequest
- func (*GetLimitsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLimitsRequest) GetConsumerId() string
- func (x *GetLimitsRequest) GetPackageId() string
- func (x *GetLimitsRequest) GetPageNo() int64
- func (x *GetLimitsRequest) GetPageSize() int64
- func (m *GetLimitsRequest) MarshalJSON() ([]byte, error)
- func (*GetLimitsRequest) ProtoMessage()
- func (x *GetLimitsRequest) ProtoReflect() protoreflect.Message
- func (x *GetLimitsRequest) Reset()
- func (x *GetLimitsRequest) String() string
- func (m *GetLimitsRequest) UnmarshalJSON(b []byte) error
- func (m *GetLimitsRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetLimitsRequest) Validate() error
- type GetLimitsResponse
- func (*GetLimitsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLimitsResponse) GetData() *pb.NewPageResult
- func (m *GetLimitsResponse) MarshalJSON() ([]byte, error)
- func (*GetLimitsResponse) ProtoMessage()
- func (x *GetLimitsResponse) ProtoReflect() protoreflect.Message
- func (x *GetLimitsResponse) Reset()
- func (x *GetLimitsResponse) String() string
- func (m *GetLimitsResponse) UnmarshalJSON(b []byte) error
- func (m *GetLimitsResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetLimitsResponse) Validate() error
- type LimitRequest
- func (*LimitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LimitRequest) GetApiPath() string
- func (x *LimitRequest) GetConsumerId() string
- func (x *LimitRequest) GetLimit() *LimitType
- func (x *LimitRequest) GetMethod() string
- func (x *LimitRequest) GetPackageId() string
- func (m *LimitRequest) MarshalJSON() ([]byte, error)
- func (*LimitRequest) ProtoMessage()
- func (x *LimitRequest) ProtoReflect() protoreflect.Message
- func (x *LimitRequest) Reset()
- func (x *LimitRequest) String() string
- func (m *LimitRequest) UnmarshalJSON(b []byte) error
- func (m *LimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *LimitRequest) Validate() error
- type LimitRuleInfo
- func (*LimitRuleInfo) Descriptor() ([]byte, []int)deprecated
- func (x *LimitRuleInfo) GetApiPath() string
- func (x *LimitRuleInfo) GetConsumerId() string
- func (x *LimitRuleInfo) GetConsumerName() string
- func (x *LimitRuleInfo) GetCreateAt() string
- func (x *LimitRuleInfo) GetId() string
- func (x *LimitRuleInfo) GetLimit() *LimitType
- func (x *LimitRuleInfo) GetMethod() string
- func (x *LimitRuleInfo) GetPackageId() string
- func (x *LimitRuleInfo) GetPackageName() string
- func (m *LimitRuleInfo) MarshalJSON() ([]byte, error)
- func (*LimitRuleInfo) ProtoMessage()
- func (x *LimitRuleInfo) ProtoReflect() protoreflect.Message
- func (x *LimitRuleInfo) Reset()
- func (x *LimitRuleInfo) String() string
- func (m *LimitRuleInfo) UnmarshalJSON(b []byte) error
- func (m *LimitRuleInfo) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *LimitRuleInfo) Validate() error
- type LimitType
- func (*LimitType) Descriptor() ([]byte, []int)deprecated
- func (x *LimitType) GetQpd() int32
- func (x *LimitType) GetQph() int32
- func (x *LimitType) GetQpm() int32
- func (x *LimitType) GetQps() int32
- func (m *LimitType) MarshalJSON() ([]byte, error)
- func (*LimitType) ProtoMessage()
- func (x *LimitType) ProtoReflect() protoreflect.Message
- func (x *LimitType) Reset()
- func (x *LimitType) String() string
- func (m *LimitType) UnmarshalJSON(b []byte) error
- func (m *LimitType) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *LimitType) Validate() error
- type OpenapiRuleServiceClient
- type OpenapiRuleServiceHandler
- type OpenapiRuleServiceServer
- type UnimplementedOpenapiRuleServiceServer
- func (*UnimplementedOpenapiRuleServiceServer) CreateLimit(context.Context, *CreateLimitRequest) (*CreateLimitResponse, error)
- func (*UnimplementedOpenapiRuleServiceServer) DeleteLimit(context.Context, *DeleteLimitRequest) (*DeleteLimitResponse, error)
- func (*UnimplementedOpenapiRuleServiceServer) GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error)
- func (*UnimplementedOpenapiRuleServiceServer) UpdateLimit(context.Context, *UpdateLimitRequest) (*UpdateLimitResponse, error)
- type UpdateLimitRequest
- func (*UpdateLimitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLimitRequest) GetLimitRequest() *LimitRequest
- func (x *UpdateLimitRequest) GetRuleId() string
- func (m *UpdateLimitRequest) MarshalJSON() ([]byte, error)
- func (*UpdateLimitRequest) ProtoMessage()
- func (x *UpdateLimitRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLimitRequest) Reset()
- func (x *UpdateLimitRequest) String() string
- func (m *UpdateLimitRequest) UnmarshalJSON(b []byte) error
- func (m *UpdateLimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *UpdateLimitRequest) Validate() error
- type UpdateLimitResponse
- func (*UpdateLimitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLimitResponse) GetData() *LimitRuleInfo
- func (m *UpdateLimitResponse) MarshalJSON() ([]byte, error)
- func (*UpdateLimitResponse) ProtoMessage()
- func (x *UpdateLimitResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateLimitResponse) Reset()
- func (x *UpdateLimitResponse) String() string
- func (m *UpdateLimitResponse) UnmarshalJSON(b []byte) error
- func (m *UpdateLimitResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *UpdateLimitResponse) Validate() error
Constants ¶
This section is empty.
Variables ¶
var File_openapi_rule_proto protoreflect.FileDescriptor
Functions ¶
func OpenapiRuleServiceClientType ¶
OpenapiRuleServiceClientType .
func OpenapiRuleServiceHandlerType ¶
OpenapiRuleServiceHandlerType .
func OpenapiRuleServiceServerType ¶
OpenapiRuleServiceServerType .
func RegisterOpenapiRuleServiceHandler ¶
func RegisterOpenapiRuleServiceHandler(r http.Router, srv OpenapiRuleServiceHandler, opts ...http.HandleOption)
RegisterOpenapiRuleServiceHandler register OpenapiRuleServiceHandler to http.Router.
func RegisterOpenapiRuleServiceImp ¶
func RegisterOpenapiRuleServiceImp(regester transport.Register, srv OpenapiRuleServiceServer, opts ...transport.ServiceOption)
RegisterOpenapiRuleServiceImp openapi_rule.proto
func RegisterOpenapiRuleServiceServer ¶
func RegisterOpenapiRuleServiceServer(s grpc1.ServiceRegistrar, srv OpenapiRuleServiceServer, opts ...grpc1.HandleOption)
Types ¶
type CreateLimitRequest ¶
type CreateLimitRequest struct { ProjectId string `protobuf:"bytes,1,opt,name=projectId,proto3" json:"projectId,omitempty"` Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"` LimitRequest *LimitRequest `protobuf:"bytes,3,opt,name=limitRequest,proto3" json:"limitRequest,omitempty"` // contains filtered or unexported fields }
func (*CreateLimitRequest) Descriptor
deprecated
func (*CreateLimitRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLimitRequest.ProtoReflect.Descriptor instead.
func (*CreateLimitRequest) GetEnv ¶
func (x *CreateLimitRequest) GetEnv() string
func (*CreateLimitRequest) GetLimitRequest ¶
func (x *CreateLimitRequest) GetLimitRequest() *LimitRequest
func (*CreateLimitRequest) GetProjectId ¶
func (x *CreateLimitRequest) GetProjectId() string
func (*CreateLimitRequest) MarshalJSON ¶
func (m *CreateLimitRequest) MarshalJSON() ([]byte, error)
CreateLimitRequest implement json.Marshaler.
func (*CreateLimitRequest) ProtoMessage ¶
func (*CreateLimitRequest) ProtoMessage()
func (*CreateLimitRequest) ProtoReflect ¶
func (x *CreateLimitRequest) ProtoReflect() protoreflect.Message
func (*CreateLimitRequest) Reset ¶
func (x *CreateLimitRequest) Reset()
func (*CreateLimitRequest) String ¶
func (x *CreateLimitRequest) String() string
func (*CreateLimitRequest) UnmarshalJSON ¶
func (m *CreateLimitRequest) UnmarshalJSON(b []byte) error
CreateLimitRequest implement json.Marshaler.
func (*CreateLimitRequest) UnmarshalURLValues ¶
func (m *CreateLimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
CreateLimitRequest implement urlenc.URLValuesUnmarshaler.
func (*CreateLimitRequest) Validate ¶
func (this *CreateLimitRequest) Validate() error
type CreateLimitResponse ¶
type CreateLimitResponse struct { Data bool `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateLimitResponse) Descriptor
deprecated
func (*CreateLimitResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLimitResponse.ProtoReflect.Descriptor instead.
func (*CreateLimitResponse) GetData ¶
func (x *CreateLimitResponse) GetData() bool
func (*CreateLimitResponse) MarshalJSON ¶
func (m *CreateLimitResponse) MarshalJSON() ([]byte, error)
CreateLimitResponse implement json.Marshaler.
func (*CreateLimitResponse) ProtoMessage ¶
func (*CreateLimitResponse) ProtoMessage()
func (*CreateLimitResponse) ProtoReflect ¶
func (x *CreateLimitResponse) ProtoReflect() protoreflect.Message
func (*CreateLimitResponse) Reset ¶
func (x *CreateLimitResponse) Reset()
func (*CreateLimitResponse) String ¶
func (x *CreateLimitResponse) String() string
func (*CreateLimitResponse) UnmarshalJSON ¶
func (m *CreateLimitResponse) UnmarshalJSON(b []byte) error
CreateLimitResponse implement json.Marshaler.
func (*CreateLimitResponse) UnmarshalURLValues ¶
func (m *CreateLimitResponse) UnmarshalURLValues(prefix string, values url.Values) error
CreateLimitResponse implement urlenc.URLValuesUnmarshaler.
func (*CreateLimitResponse) Validate ¶
func (this *CreateLimitResponse) Validate() error
type DeleteLimitRequest ¶
type DeleteLimitRequest struct { RuleId string `protobuf:"bytes,1,opt,name=ruleId,proto3" json:"ruleId,omitempty"` // contains filtered or unexported fields }
func (*DeleteLimitRequest) Descriptor
deprecated
func (*DeleteLimitRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteLimitRequest.ProtoReflect.Descriptor instead.
func (*DeleteLimitRequest) GetRuleId ¶
func (x *DeleteLimitRequest) GetRuleId() string
func (*DeleteLimitRequest) MarshalJSON ¶
func (m *DeleteLimitRequest) MarshalJSON() ([]byte, error)
DeleteLimitRequest implement json.Marshaler.
func (*DeleteLimitRequest) ProtoMessage ¶
func (*DeleteLimitRequest) ProtoMessage()
func (*DeleteLimitRequest) ProtoReflect ¶
func (x *DeleteLimitRequest) ProtoReflect() protoreflect.Message
func (*DeleteLimitRequest) Reset ¶
func (x *DeleteLimitRequest) Reset()
func (*DeleteLimitRequest) String ¶
func (x *DeleteLimitRequest) String() string
func (*DeleteLimitRequest) UnmarshalJSON ¶
func (m *DeleteLimitRequest) UnmarshalJSON(b []byte) error
DeleteLimitRequest implement json.Marshaler.
func (*DeleteLimitRequest) UnmarshalURLValues ¶
func (m *DeleteLimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
DeleteLimitRequest implement urlenc.URLValuesUnmarshaler.
func (*DeleteLimitRequest) Validate ¶
func (this *DeleteLimitRequest) Validate() error
type DeleteLimitResponse ¶
type DeleteLimitResponse struct { Data bool `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DeleteLimitResponse) Descriptor
deprecated
func (*DeleteLimitResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteLimitResponse.ProtoReflect.Descriptor instead.
func (*DeleteLimitResponse) GetData ¶
func (x *DeleteLimitResponse) GetData() bool
func (*DeleteLimitResponse) MarshalJSON ¶
func (m *DeleteLimitResponse) MarshalJSON() ([]byte, error)
DeleteLimitResponse implement json.Marshaler.
func (*DeleteLimitResponse) ProtoMessage ¶
func (*DeleteLimitResponse) ProtoMessage()
func (*DeleteLimitResponse) ProtoReflect ¶
func (x *DeleteLimitResponse) ProtoReflect() protoreflect.Message
func (*DeleteLimitResponse) Reset ¶
func (x *DeleteLimitResponse) Reset()
func (*DeleteLimitResponse) String ¶
func (x *DeleteLimitResponse) String() string
func (*DeleteLimitResponse) UnmarshalJSON ¶
func (m *DeleteLimitResponse) UnmarshalJSON(b []byte) error
DeleteLimitResponse implement json.Marshaler.
func (*DeleteLimitResponse) UnmarshalURLValues ¶
func (m *DeleteLimitResponse) UnmarshalURLValues(prefix string, values url.Values) error
DeleteLimitResponse implement urlenc.URLValuesUnmarshaler.
func (*DeleteLimitResponse) Validate ¶
func (this *DeleteLimitResponse) Validate() error
type GetLimitsRequest ¶
type GetLimitsRequest struct { ConsumerId string `protobuf:"bytes,1,opt,name=consumerId,proto3" json:"consumerId,omitempty"` PackageId string `protobuf:"bytes,2,opt,name=packageId,proto3" json:"packageId,omitempty"` PageNo int64 `protobuf:"varint,3,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize int64 `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*GetLimitsRequest) Descriptor
deprecated
func (*GetLimitsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLimitsRequest.ProtoReflect.Descriptor instead.
func (*GetLimitsRequest) GetConsumerId ¶
func (x *GetLimitsRequest) GetConsumerId() string
func (*GetLimitsRequest) GetPackageId ¶
func (x *GetLimitsRequest) GetPackageId() string
func (*GetLimitsRequest) GetPageNo ¶
func (x *GetLimitsRequest) GetPageNo() int64
func (*GetLimitsRequest) GetPageSize ¶
func (x *GetLimitsRequest) GetPageSize() int64
func (*GetLimitsRequest) MarshalJSON ¶
func (m *GetLimitsRequest) MarshalJSON() ([]byte, error)
GetLimitsRequest implement json.Marshaler.
func (*GetLimitsRequest) ProtoMessage ¶
func (*GetLimitsRequest) ProtoMessage()
func (*GetLimitsRequest) ProtoReflect ¶
func (x *GetLimitsRequest) ProtoReflect() protoreflect.Message
func (*GetLimitsRequest) Reset ¶
func (x *GetLimitsRequest) Reset()
func (*GetLimitsRequest) String ¶
func (x *GetLimitsRequest) String() string
func (*GetLimitsRequest) UnmarshalJSON ¶
func (m *GetLimitsRequest) UnmarshalJSON(b []byte) error
GetLimitsRequest implement json.Marshaler.
func (*GetLimitsRequest) UnmarshalURLValues ¶
func (m *GetLimitsRequest) UnmarshalURLValues(prefix string, values url.Values) error
GetLimitsRequest implement urlenc.URLValuesUnmarshaler.
func (*GetLimitsRequest) Validate ¶
func (this *GetLimitsRequest) Validate() error
type GetLimitsResponse ¶
type GetLimitsResponse struct { Data *pb.NewPageResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetLimitsResponse) Descriptor
deprecated
func (*GetLimitsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLimitsResponse.ProtoReflect.Descriptor instead.
func (*GetLimitsResponse) GetData ¶
func (x *GetLimitsResponse) GetData() *pb.NewPageResult
func (*GetLimitsResponse) MarshalJSON ¶
func (m *GetLimitsResponse) MarshalJSON() ([]byte, error)
GetLimitsResponse implement json.Marshaler.
func (*GetLimitsResponse) ProtoMessage ¶
func (*GetLimitsResponse) ProtoMessage()
func (*GetLimitsResponse) ProtoReflect ¶
func (x *GetLimitsResponse) ProtoReflect() protoreflect.Message
func (*GetLimitsResponse) Reset ¶
func (x *GetLimitsResponse) Reset()
func (*GetLimitsResponse) String ¶
func (x *GetLimitsResponse) String() string
func (*GetLimitsResponse) UnmarshalJSON ¶
func (m *GetLimitsResponse) UnmarshalJSON(b []byte) error
GetLimitsResponse implement json.Marshaler.
func (*GetLimitsResponse) UnmarshalURLValues ¶
func (m *GetLimitsResponse) UnmarshalURLValues(prefix string, values url.Values) error
GetLimitsResponse implement urlenc.URLValuesUnmarshaler.
func (*GetLimitsResponse) Validate ¶
func (this *GetLimitsResponse) Validate() error
type LimitRequest ¶
type LimitRequest struct { ConsumerId string `protobuf:"bytes,1,opt,name=consumerId,proto3" json:"consumerId,omitempty"` PackageId string `protobuf:"bytes,2,opt,name=packageId,proto3" json:"packageId,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` ApiPath string `protobuf:"bytes,4,opt,name=apiPath,proto3" json:"apiPath,omitempty"` Limit *LimitType `protobuf:"bytes,5,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*LimitRequest) Descriptor
deprecated
func (*LimitRequest) Descriptor() ([]byte, []int)
Deprecated: Use LimitRequest.ProtoReflect.Descriptor instead.
func (*LimitRequest) GetApiPath ¶
func (x *LimitRequest) GetApiPath() string
func (*LimitRequest) GetConsumerId ¶
func (x *LimitRequest) GetConsumerId() string
func (*LimitRequest) GetLimit ¶
func (x *LimitRequest) GetLimit() *LimitType
func (*LimitRequest) GetMethod ¶
func (x *LimitRequest) GetMethod() string
func (*LimitRequest) GetPackageId ¶
func (x *LimitRequest) GetPackageId() string
func (*LimitRequest) MarshalJSON ¶
func (m *LimitRequest) MarshalJSON() ([]byte, error)
LimitRequest implement json.Marshaler.
func (*LimitRequest) ProtoMessage ¶
func (*LimitRequest) ProtoMessage()
func (*LimitRequest) ProtoReflect ¶
func (x *LimitRequest) ProtoReflect() protoreflect.Message
func (*LimitRequest) Reset ¶
func (x *LimitRequest) Reset()
func (*LimitRequest) String ¶
func (x *LimitRequest) String() string
func (*LimitRequest) UnmarshalJSON ¶
func (m *LimitRequest) UnmarshalJSON(b []byte) error
LimitRequest implement json.Marshaler.
func (*LimitRequest) UnmarshalURLValues ¶
func (m *LimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
LimitRequest implement urlenc.URLValuesUnmarshaler.
func (*LimitRequest) Validate ¶
func (this *LimitRequest) Validate() error
type LimitRuleInfo ¶
type LimitRuleInfo struct { ConsumerId string `protobuf:"bytes,1,opt,name=consumerId,proto3" json:"consumerId,omitempty"` PackageId string `protobuf:"bytes,2,opt,name=packageId,proto3" json:"packageId,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` ApiPath string `protobuf:"bytes,4,opt,name=apiPath,proto3" json:"apiPath,omitempty"` Limit *LimitType `protobuf:"bytes,5,opt,name=limit,proto3" json:"limit,omitempty"` Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` CreateAt string `protobuf:"bytes,7,opt,name=createAt,proto3" json:"createAt,omitempty"` ConsumerName string `protobuf:"bytes,8,opt,name=consumerName,proto3" json:"consumerName,omitempty"` PackageName string `protobuf:"bytes,9,opt,name=packageName,proto3" json:"packageName,omitempty"` // contains filtered or unexported fields }
func (*LimitRuleInfo) Descriptor
deprecated
func (*LimitRuleInfo) Descriptor() ([]byte, []int)
Deprecated: Use LimitRuleInfo.ProtoReflect.Descriptor instead.
func (*LimitRuleInfo) GetApiPath ¶
func (x *LimitRuleInfo) GetApiPath() string
func (*LimitRuleInfo) GetConsumerId ¶
func (x *LimitRuleInfo) GetConsumerId() string
func (*LimitRuleInfo) GetConsumerName ¶
func (x *LimitRuleInfo) GetConsumerName() string
func (*LimitRuleInfo) GetCreateAt ¶
func (x *LimitRuleInfo) GetCreateAt() string
func (*LimitRuleInfo) GetId ¶
func (x *LimitRuleInfo) GetId() string
func (*LimitRuleInfo) GetLimit ¶
func (x *LimitRuleInfo) GetLimit() *LimitType
func (*LimitRuleInfo) GetMethod ¶
func (x *LimitRuleInfo) GetMethod() string
func (*LimitRuleInfo) GetPackageId ¶
func (x *LimitRuleInfo) GetPackageId() string
func (*LimitRuleInfo) GetPackageName ¶
func (x *LimitRuleInfo) GetPackageName() string
func (*LimitRuleInfo) MarshalJSON ¶
func (m *LimitRuleInfo) MarshalJSON() ([]byte, error)
LimitRuleInfo implement json.Marshaler.
func (*LimitRuleInfo) ProtoMessage ¶
func (*LimitRuleInfo) ProtoMessage()
func (*LimitRuleInfo) ProtoReflect ¶
func (x *LimitRuleInfo) ProtoReflect() protoreflect.Message
func (*LimitRuleInfo) Reset ¶
func (x *LimitRuleInfo) Reset()
func (*LimitRuleInfo) String ¶
func (x *LimitRuleInfo) String() string
func (*LimitRuleInfo) UnmarshalJSON ¶
func (m *LimitRuleInfo) UnmarshalJSON(b []byte) error
LimitRuleInfo implement json.Marshaler.
func (*LimitRuleInfo) UnmarshalURLValues ¶
func (m *LimitRuleInfo) UnmarshalURLValues(prefix string, values url.Values) error
LimitRuleInfo implement urlenc.URLValuesUnmarshaler.
func (*LimitRuleInfo) Validate ¶
func (this *LimitRuleInfo) Validate() error
type LimitType ¶
type LimitType struct { Qpd int32 `protobuf:"varint,1,opt,name=qpd,proto3" json:"qpd,omitempty"` Qph int32 `protobuf:"varint,2,opt,name=qph,proto3" json:"qph,omitempty"` Qpm int32 `protobuf:"varint,3,opt,name=qpm,proto3" json:"qpm,omitempty"` Qps int32 `protobuf:"varint,4,opt,name=qps,proto3" json:"qps,omitempty"` // contains filtered or unexported fields }
func (*LimitType) Descriptor
deprecated
func (*LimitType) MarshalJSON ¶
LimitType implement json.Marshaler.
func (*LimitType) ProtoMessage ¶
func (*LimitType) ProtoMessage()
func (*LimitType) ProtoReflect ¶
func (x *LimitType) ProtoReflect() protoreflect.Message
func (*LimitType) UnmarshalJSON ¶
LimitType implement json.Marshaler.
func (*LimitType) UnmarshalURLValues ¶
LimitType implement urlenc.URLValuesUnmarshaler.
type OpenapiRuleServiceClient ¶
type OpenapiRuleServiceClient interface { GetLimits(ctx context.Context, in *GetLimitsRequest, opts ...grpc.CallOption) (*GetLimitsResponse, error) CreateLimit(ctx context.Context, in *CreateLimitRequest, opts ...grpc.CallOption) (*CreateLimitResponse, error) UpdateLimit(ctx context.Context, in *UpdateLimitRequest, opts ...grpc.CallOption) (*UpdateLimitResponse, error) DeleteLimit(ctx context.Context, in *DeleteLimitRequest, opts ...grpc.CallOption) (*DeleteLimitResponse, error) }
OpenapiRuleServiceClient is the client API for OpenapiRuleService 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.
func NewOpenapiRuleServiceClient ¶
func NewOpenapiRuleServiceClient(cc grpc1.ClientConnInterface) OpenapiRuleServiceClient
type OpenapiRuleServiceHandler ¶
type OpenapiRuleServiceHandler interface { // GET /api/gateway/openapi/limits GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error) // POST /api/gateway/openapi/limits CreateLimit(context.Context, *CreateLimitRequest) (*CreateLimitResponse, error) // PATCH /api/gateway/openapi/limits/{ruleId} UpdateLimit(context.Context, *UpdateLimitRequest) (*UpdateLimitResponse, error) // DELETE /api/gateway/openapi/limits/{ruleId} DeleteLimit(context.Context, *DeleteLimitRequest) (*DeleteLimitResponse, error) }
OpenapiRuleServiceHandler is the server API for OpenapiRuleService service.
type OpenapiRuleServiceServer ¶
type OpenapiRuleServiceServer interface { GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error) CreateLimit(context.Context, *CreateLimitRequest) (*CreateLimitResponse, error) UpdateLimit(context.Context, *UpdateLimitRequest) (*UpdateLimitResponse, error) DeleteLimit(context.Context, *DeleteLimitRequest) (*DeleteLimitResponse, error) }
OpenapiRuleServiceServer is the server API for OpenapiRuleService service. All implementations should embed UnimplementedOpenapiRuleServiceServer for forward compatibility
type UnimplementedOpenapiRuleServiceServer ¶
type UnimplementedOpenapiRuleServiceServer struct { }
UnimplementedOpenapiRuleServiceServer should be embedded to have forward compatible implementations.
func (*UnimplementedOpenapiRuleServiceServer) CreateLimit ¶
func (*UnimplementedOpenapiRuleServiceServer) CreateLimit(context.Context, *CreateLimitRequest) (*CreateLimitResponse, error)
func (*UnimplementedOpenapiRuleServiceServer) DeleteLimit ¶
func (*UnimplementedOpenapiRuleServiceServer) DeleteLimit(context.Context, *DeleteLimitRequest) (*DeleteLimitResponse, error)
func (*UnimplementedOpenapiRuleServiceServer) GetLimits ¶
func (*UnimplementedOpenapiRuleServiceServer) GetLimits(context.Context, *GetLimitsRequest) (*GetLimitsResponse, error)
func (*UnimplementedOpenapiRuleServiceServer) UpdateLimit ¶
func (*UnimplementedOpenapiRuleServiceServer) UpdateLimit(context.Context, *UpdateLimitRequest) (*UpdateLimitResponse, error)
type UpdateLimitRequest ¶
type UpdateLimitRequest struct { RuleId string `protobuf:"bytes,1,opt,name=ruleId,proto3" json:"ruleId,omitempty"` LimitRequest *LimitRequest `protobuf:"bytes,2,opt,name=limitRequest,proto3" json:"limitRequest,omitempty"` // contains filtered or unexported fields }
func (*UpdateLimitRequest) Descriptor
deprecated
func (*UpdateLimitRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLimitRequest.ProtoReflect.Descriptor instead.
func (*UpdateLimitRequest) GetLimitRequest ¶
func (x *UpdateLimitRequest) GetLimitRequest() *LimitRequest
func (*UpdateLimitRequest) GetRuleId ¶
func (x *UpdateLimitRequest) GetRuleId() string
func (*UpdateLimitRequest) MarshalJSON ¶
func (m *UpdateLimitRequest) MarshalJSON() ([]byte, error)
UpdateLimitRequest implement json.Marshaler.
func (*UpdateLimitRequest) ProtoMessage ¶
func (*UpdateLimitRequest) ProtoMessage()
func (*UpdateLimitRequest) ProtoReflect ¶
func (x *UpdateLimitRequest) ProtoReflect() protoreflect.Message
func (*UpdateLimitRequest) Reset ¶
func (x *UpdateLimitRequest) Reset()
func (*UpdateLimitRequest) String ¶
func (x *UpdateLimitRequest) String() string
func (*UpdateLimitRequest) UnmarshalJSON ¶
func (m *UpdateLimitRequest) UnmarshalJSON(b []byte) error
UpdateLimitRequest implement json.Marshaler.
func (*UpdateLimitRequest) UnmarshalURLValues ¶
func (m *UpdateLimitRequest) UnmarshalURLValues(prefix string, values url.Values) error
UpdateLimitRequest implement urlenc.URLValuesUnmarshaler.
func (*UpdateLimitRequest) Validate ¶
func (this *UpdateLimitRequest) Validate() error
type UpdateLimitResponse ¶
type UpdateLimitResponse struct { Data *LimitRuleInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UpdateLimitResponse) Descriptor
deprecated
func (*UpdateLimitResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLimitResponse.ProtoReflect.Descriptor instead.
func (*UpdateLimitResponse) GetData ¶
func (x *UpdateLimitResponse) GetData() *LimitRuleInfo
func (*UpdateLimitResponse) MarshalJSON ¶
func (m *UpdateLimitResponse) MarshalJSON() ([]byte, error)
UpdateLimitResponse implement json.Marshaler.
func (*UpdateLimitResponse) ProtoMessage ¶
func (*UpdateLimitResponse) ProtoMessage()
func (*UpdateLimitResponse) ProtoReflect ¶
func (x *UpdateLimitResponse) ProtoReflect() protoreflect.Message
func (*UpdateLimitResponse) Reset ¶
func (x *UpdateLimitResponse) Reset()
func (*UpdateLimitResponse) String ¶
func (x *UpdateLimitResponse) String() string
func (*UpdateLimitResponse) UnmarshalJSON ¶
func (m *UpdateLimitResponse) UnmarshalJSON(b []byte) error
UpdateLimitResponse implement json.Marshaler.
func (*UpdateLimitResponse) UnmarshalURLValues ¶
func (m *UpdateLimitResponse) UnmarshalURLValues(prefix string, values url.Values) error
UpdateLimitResponse implement urlenc.URLValuesUnmarshaler.
func (*UpdateLimitResponse) Validate ¶
func (this *UpdateLimitResponse) Validate() error