Documentation ¶
Overview ¶
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_hash.proto
Package counter is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_key.proto
Package counter is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterInnerHashHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInnerHashHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerHashClient) error
- func RegisterInnerHashHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInnerHashHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerHashServer) error
- func RegisterInnerHashScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerHashServer(s *grpc.Server, srv InnerHashServer)
- func RegisterInnerKeyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInnerKeyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerKeyClient) error
- func RegisterInnerKeyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInnerKeyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerKeyServer) error
- func RegisterInnerKeyScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerKeyServer(s *grpc.Server, srv InnerKeyServer)
- type HashField
- func (*HashField) Descriptor() ([]byte, []int)
- func (m *HashField) GetField() string
- func (m *HashField) GetProduct() string
- func (m *HashField) GetRelateId() string
- func (m *HashField) GetType() string
- func (m *HashField) GetValue() int64
- func (*HashField) ProtoMessage()
- func (m *HashField) Reset()
- func (m *HashField) String() string
- func (m *HashField) Validate() error
- func (m *HashField) XXX_DiscardUnknown()
- func (m *HashField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashField) XXX_Merge(src proto.Message)
- func (m *HashField) XXX_Size() int
- func (m *HashField) XXX_Unmarshal(b []byte) error
- type HashFieldValidationError
- type HashFields
- func (*HashFields) Descriptor() ([]byte, []int)
- func (m *HashFields) GetFields() []string
- func (m *HashFields) GetProduct() string
- func (m *HashFields) GetRelateId() string
- func (m *HashFields) GetType() string
- func (m *HashFields) GetValues() map[string]int64
- func (*HashFields) ProtoMessage()
- func (m *HashFields) Reset()
- func (m *HashFields) String() string
- func (m *HashFields) Validate() error
- func (m *HashFields) XXX_DiscardUnknown()
- func (m *HashFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashFields) XXX_Merge(src proto.Message)
- func (m *HashFields) XXX_Size() int
- func (m *HashFields) XXX_Unmarshal(b []byte) error
- type HashFieldsValidationError
- type HashKeys
- func (*HashKeys) Descriptor() ([]byte, []int)
- func (m *HashKeys) GetProduct() string
- func (m *HashKeys) GetRelateIds() []string
- func (m *HashKeys) GetType() string
- func (*HashKeys) ProtoMessage()
- func (m *HashKeys) Reset()
- func (m *HashKeys) String() string
- func (m *HashKeys) Validate() error
- func (m *HashKeys) XXX_DiscardUnknown()
- func (m *HashKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashKeys) XXX_Merge(src proto.Message)
- func (m *HashKeys) XXX_Size() int
- func (m *HashKeys) XXX_Unmarshal(b []byte) error
- type HashKeysValidationError
- type HashValue
- func (*HashValue) Descriptor() ([]byte, []int)
- func (m *HashValue) GetFieldValues() map[string]int64
- func (*HashValue) ProtoMessage()
- func (m *HashValue) Reset()
- func (m *HashValue) String() string
- func (m *HashValue) Validate() error
- func (m *HashValue) XXX_DiscardUnknown()
- func (m *HashValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashValue) XXX_Merge(src proto.Message)
- func (m *HashValue) XXX_Size() int
- func (m *HashValue) XXX_Unmarshal(b []byte) error
- type HashValueValidationError
- type HashValues
- func (*HashValues) Descriptor() ([]byte, []int)
- func (m *HashValues) GetValues() map[string]*HashValue
- func (*HashValues) ProtoMessage()
- func (m *HashValues) Reset()
- func (m *HashValues) String() string
- func (m *HashValues) Validate() error
- func (m *HashValues) XXX_DiscardUnknown()
- func (m *HashValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashValues) XXX_Merge(src proto.Message)
- func (m *HashValues) XXX_Size() int
- func (m *HashValues) XXX_Unmarshal(b []byte) error
- type HashValuesValidationError
- type InnerHashClient
- type InnerHashServer
- type InnerKeyClient
- type InnerKeyServer
- type Key
- func (*Key) Descriptor() ([]byte, []int)
- func (m *Key) GetExpire() *duration.Duration
- func (m *Key) GetProduct() string
- func (m *Key) GetRelateId() string
- func (m *Key) GetType() string
- func (m *Key) GetValue() int64
- func (*Key) ProtoMessage()
- func (m *Key) Reset()
- func (m *Key) String() string
- func (m *Key) Validate() error
- func (m *Key) XXX_DiscardUnknown()
- func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Key) XXX_Merge(src proto.Message)
- func (m *Key) XXX_Size() int
- func (m *Key) XXX_Unmarshal(b []byte) error
- type KeyValidationError
- type Keys
- func (*Keys) Descriptor() ([]byte, []int)
- func (m *Keys) GetProduct() string
- func (m *Keys) GetRelateIds() []string
- func (m *Keys) GetType() string
- func (m *Keys) GetValues() map[string]int64
- func (*Keys) ProtoMessage()
- func (m *Keys) Reset()
- func (m *Keys) String() string
- func (m *Keys) Validate() error
- func (m *Keys) XXX_DiscardUnknown()
- func (m *Keys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Keys) XXX_Merge(src proto.Message)
- func (m *Keys) XXX_Size() int
- func (m *Keys) XXX_Unmarshal(b []byte) error
- type KeysValidationError
- type UnimplementedInnerHashServer
- func (*UnimplementedInnerHashServer) Get(ctx context.Context, req *HashField) (*HashField, error)
- func (*UnimplementedInnerHashServer) Gets(ctx context.Context, req *HashFields) (*HashFields, error)
- func (*UnimplementedInnerHashServer) Increase(ctx context.Context, req *HashField) (*HashField, error)
- func (*UnimplementedInnerHashServer) MultiGets(ctx context.Context, req *HashKeys) (*HashValues, error)
- func (*UnimplementedInnerHashServer) MultiIncrease(ctx context.Context, req *HashFields) (*HashFields, error)
- func (*UnimplementedInnerHashServer) Set(ctx context.Context, req *HashField) (*empty.Empty, error)
- func (*UnimplementedInnerHashServer) Sets(ctx context.Context, req *HashFields) (*empty.Empty, error)
- type UnimplementedInnerKeyServer
- func (*UnimplementedInnerKeyServer) Get(ctx context.Context, req *Key) (*Key, error)
- func (*UnimplementedInnerKeyServer) Gets(ctx context.Context, req *Keys) (*Keys, error)
- func (*UnimplementedInnerKeyServer) Increase(ctx context.Context, req *Key) (*Key, error)
- func (*UnimplementedInnerKeyServer) MultiIncrease(ctx context.Context, req *Keys) (*Keys, error)
- func (*UnimplementedInnerKeyServer) Set(ctx context.Context, req *Key) (*empty.Empty, error)
- func (*UnimplementedInnerKeyServer) Sets(ctx context.Context, req *Keys) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterInnerHashHandler ¶
func RegisterInnerHashHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInnerHashHandler registers the http handlers for service InnerHash to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInnerHashHandlerClient ¶
func RegisterInnerHashHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerHashClient) error
RegisterInnerHashHandlerClient registers the http handlers for service InnerHash to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerHashClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerHashClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerHashClient" to call the correct interceptors.
func RegisterInnerHashHandlerFromEndpoint ¶
func RegisterInnerHashHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInnerHashHandlerFromEndpoint is same as RegisterInnerHashHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInnerHashHandlerServer ¶
func RegisterInnerHashHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerHashServer) error
RegisterInnerHashHandlerServer registers the http handlers for service InnerHash to "mux". UnaryRPC :call InnerHashServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterInnerHashScopeServer ¶
func RegisterInnerHashScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerHashServer) error
Register scoped server.
func RegisterInnerHashServer ¶
func RegisterInnerHashServer(s *grpc.Server, srv InnerHashServer)
func RegisterInnerKeyHandler ¶
func RegisterInnerKeyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInnerKeyHandler registers the http handlers for service InnerKey to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInnerKeyHandlerClient ¶
func RegisterInnerKeyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerKeyClient) error
RegisterInnerKeyHandlerClient registers the http handlers for service InnerKey to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerKeyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerKeyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerKeyClient" to call the correct interceptors.
func RegisterInnerKeyHandlerFromEndpoint ¶
func RegisterInnerKeyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInnerKeyHandlerFromEndpoint is same as RegisterInnerKeyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInnerKeyHandlerServer ¶
func RegisterInnerKeyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerKeyServer) error
RegisterInnerKeyHandlerServer registers the http handlers for service InnerKey to "mux". UnaryRPC :call InnerKeyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterInnerKeyScopeServer ¶
func RegisterInnerKeyScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerKeyServer) error
Register scoped server.
func RegisterInnerKeyServer ¶
func RegisterInnerKeyServer(s *grpc.Server, srv InnerKeyServer)
Types ¶
type HashField ¶
type HashField struct { Product *string `protobuf:"bytes,1,req,name=product" json:"product,omitempty"` Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` RelateId *string `protobuf:"bytes,3,req,name=relate_id,json=relateId" json:"relate_id,omitempty"` Field *string `protobuf:"bytes,4,req,name=field" json:"field,omitempty"` Value *int64 `protobuf:"varint,5,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Hash field key.
func (*HashField) Descriptor ¶
func (*HashField) GetProduct ¶
func (*HashField) GetRelateId ¶
func (*HashField) ProtoMessage ¶
func (*HashField) ProtoMessage()
func (*HashField) Validate ¶
Validate checks the field values on HashField with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HashField) XXX_DiscardUnknown ¶
func (m *HashField) XXX_DiscardUnknown()
func (*HashField) XXX_Marshal ¶
func (*HashField) XXX_Unmarshal ¶
type HashFieldValidationError ¶
type HashFieldValidationError struct {
// contains filtered or unexported fields
}
HashFieldValidationError is the validation error returned by HashField.Validate if the designated constraints aren't met.
func (HashFieldValidationError) Cause ¶
func (e HashFieldValidationError) Cause() error
Cause function returns cause value.
func (HashFieldValidationError) Error ¶
func (e HashFieldValidationError) Error() string
Error satisfies the builtin error interface
func (HashFieldValidationError) ErrorName ¶
func (e HashFieldValidationError) ErrorName() string
ErrorName returns error name.
func (HashFieldValidationError) Field ¶
func (e HashFieldValidationError) Field() string
Field function returns field value.
func (HashFieldValidationError) Key ¶
func (e HashFieldValidationError) Key() bool
Key function returns key value.
func (HashFieldValidationError) Reason ¶
func (e HashFieldValidationError) Reason() string
Reason function returns reason value.
type HashFields ¶
type HashFields struct { Product *string `protobuf:"bytes,1,req,name=product" json:"product,omitempty"` Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` RelateId *string `protobuf:"bytes,3,req,name=relate_id,json=relateId" json:"relate_id,omitempty"` Fields []string `protobuf:"bytes,4,rep,name=fields" json:"fields,omitempty"` Values map[string]int64 `` /* 133-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Hash fields key.
func (*HashFields) Descriptor ¶
func (*HashFields) Descriptor() ([]byte, []int)
func (*HashFields) GetFields ¶
func (m *HashFields) GetFields() []string
func (*HashFields) GetProduct ¶
func (m *HashFields) GetProduct() string
func (*HashFields) GetRelateId ¶
func (m *HashFields) GetRelateId() string
func (*HashFields) GetType ¶
func (m *HashFields) GetType() string
func (*HashFields) GetValues ¶
func (m *HashFields) GetValues() map[string]int64
func (*HashFields) ProtoMessage ¶
func (*HashFields) ProtoMessage()
func (*HashFields) Reset ¶
func (m *HashFields) Reset()
func (*HashFields) String ¶
func (m *HashFields) String() string
func (*HashFields) Validate ¶
func (m *HashFields) Validate() error
Validate checks the field values on HashFields with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HashFields) XXX_DiscardUnknown ¶
func (m *HashFields) XXX_DiscardUnknown()
func (*HashFields) XXX_Marshal ¶
func (m *HashFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashFields) XXX_Merge ¶
func (m *HashFields) XXX_Merge(src proto.Message)
func (*HashFields) XXX_Size ¶
func (m *HashFields) XXX_Size() int
func (*HashFields) XXX_Unmarshal ¶
func (m *HashFields) XXX_Unmarshal(b []byte) error
type HashFieldsValidationError ¶
type HashFieldsValidationError struct {
// contains filtered or unexported fields
}
HashFieldsValidationError is the validation error returned by HashFields.Validate if the designated constraints aren't met.
func (HashFieldsValidationError) Cause ¶
func (e HashFieldsValidationError) Cause() error
Cause function returns cause value.
func (HashFieldsValidationError) Error ¶
func (e HashFieldsValidationError) Error() string
Error satisfies the builtin error interface
func (HashFieldsValidationError) ErrorName ¶
func (e HashFieldsValidationError) ErrorName() string
ErrorName returns error name.
func (HashFieldsValidationError) Field ¶
func (e HashFieldsValidationError) Field() string
Field function returns field value.
func (HashFieldsValidationError) Key ¶
func (e HashFieldsValidationError) Key() bool
Key function returns key value.
func (HashFieldsValidationError) Reason ¶
func (e HashFieldsValidationError) Reason() string
Reason function returns reason value.
type HashKeys ¶
type HashKeys struct { Product *string `protobuf:"bytes,1,req,name=product" json:"product,omitempty"` Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` RelateIds []string `protobuf:"bytes,3,rep,name=relate_ids,json=relateIds" json:"relate_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Hash keys.
func (*HashKeys) Descriptor ¶
func (*HashKeys) GetProduct ¶
func (*HashKeys) GetRelateIds ¶
func (*HashKeys) ProtoMessage ¶
func (*HashKeys) ProtoMessage()
func (*HashKeys) Validate ¶
Validate checks the field values on HashKeys with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HashKeys) XXX_DiscardUnknown ¶
func (m *HashKeys) XXX_DiscardUnknown()
func (*HashKeys) XXX_Marshal ¶
func (*HashKeys) XXX_Unmarshal ¶
type HashKeysValidationError ¶
type HashKeysValidationError struct {
// contains filtered or unexported fields
}
HashKeysValidationError is the validation error returned by HashKeys.Validate if the designated constraints aren't met.
func (HashKeysValidationError) Cause ¶
func (e HashKeysValidationError) Cause() error
Cause function returns cause value.
func (HashKeysValidationError) Error ¶
func (e HashKeysValidationError) Error() string
Error satisfies the builtin error interface
func (HashKeysValidationError) ErrorName ¶
func (e HashKeysValidationError) ErrorName() string
ErrorName returns error name.
func (HashKeysValidationError) Field ¶
func (e HashKeysValidationError) Field() string
Field function returns field value.
func (HashKeysValidationError) Key ¶
func (e HashKeysValidationError) Key() bool
Key function returns key value.
func (HashKeysValidationError) Reason ¶
func (e HashKeysValidationError) Reason() string
Reason function returns reason value.
type HashValue ¶
type HashValue struct { FieldValues map[string]int64 `` /* 162-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Hash all fields values.
func (*HashValue) Descriptor ¶
func (*HashValue) GetFieldValues ¶
func (*HashValue) ProtoMessage ¶
func (*HashValue) ProtoMessage()
func (*HashValue) Validate ¶
Validate checks the field values on HashValue with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HashValue) XXX_DiscardUnknown ¶
func (m *HashValue) XXX_DiscardUnknown()
func (*HashValue) XXX_Marshal ¶
func (*HashValue) XXX_Unmarshal ¶
type HashValueValidationError ¶
type HashValueValidationError struct {
// contains filtered or unexported fields
}
HashValueValidationError is the validation error returned by HashValue.Validate if the designated constraints aren't met.
func (HashValueValidationError) Cause ¶
func (e HashValueValidationError) Cause() error
Cause function returns cause value.
func (HashValueValidationError) Error ¶
func (e HashValueValidationError) Error() string
Error satisfies the builtin error interface
func (HashValueValidationError) ErrorName ¶
func (e HashValueValidationError) ErrorName() string
ErrorName returns error name.
func (HashValueValidationError) Field ¶
func (e HashValueValidationError) Field() string
Field function returns field value.
func (HashValueValidationError) Key ¶
func (e HashValueValidationError) Key() bool
Key function returns key value.
func (HashValueValidationError) Reason ¶
func (e HashValueValidationError) Reason() string
Reason function returns reason value.
type HashValues ¶
type HashValues struct { Values map[string]*HashValue `` /* 132-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Hash counter key values.
func (*HashValues) Descriptor ¶
func (*HashValues) Descriptor() ([]byte, []int)
func (*HashValues) GetValues ¶
func (m *HashValues) GetValues() map[string]*HashValue
func (*HashValues) ProtoMessage ¶
func (*HashValues) ProtoMessage()
func (*HashValues) Reset ¶
func (m *HashValues) Reset()
func (*HashValues) String ¶
func (m *HashValues) String() string
func (*HashValues) Validate ¶
func (m *HashValues) Validate() error
Validate checks the field values on HashValues with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HashValues) XXX_DiscardUnknown ¶
func (m *HashValues) XXX_DiscardUnknown()
func (*HashValues) XXX_Marshal ¶
func (m *HashValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashValues) XXX_Merge ¶
func (m *HashValues) XXX_Merge(src proto.Message)
func (*HashValues) XXX_Size ¶
func (m *HashValues) XXX_Size() int
func (*HashValues) XXX_Unmarshal ¶
func (m *HashValues) XXX_Unmarshal(b []byte) error
type HashValuesValidationError ¶
type HashValuesValidationError struct {
// contains filtered or unexported fields
}
HashValuesValidationError is the validation error returned by HashValues.Validate if the designated constraints aren't met.
func (HashValuesValidationError) Cause ¶
func (e HashValuesValidationError) Cause() error
Cause function returns cause value.
func (HashValuesValidationError) Error ¶
func (e HashValuesValidationError) Error() string
Error satisfies the builtin error interface
func (HashValuesValidationError) ErrorName ¶
func (e HashValuesValidationError) ErrorName() string
ErrorName returns error name.
func (HashValuesValidationError) Field ¶
func (e HashValuesValidationError) Field() string
Field function returns field value.
func (HashValuesValidationError) Key ¶
func (e HashValuesValidationError) Key() bool
Key function returns key value.
func (HashValuesValidationError) Reason ¶
func (e HashValuesValidationError) Reason() string
Reason function returns reason value.
type InnerHashClient ¶
type InnerHashClient interface { // Increase hash field value. Increase(ctx context.Context, in *HashField, opts ...grpc.CallOption) (*HashField, error) // Multiple increase hash fields values. MultiIncrease(ctx context.Context, in *HashFields, opts ...grpc.CallOption) (*HashFields, error) // Get hash field counter value. Get(ctx context.Context, in *HashField, opts ...grpc.CallOption) (*HashField, error) // Get hash fields counter values. Gets(ctx context.Context, in *HashFields, opts ...grpc.CallOption) (*HashFields, error) // Set hash field counter value. Set(ctx context.Context, in *HashField, opts ...grpc.CallOption) (*empty.Empty, error) // Set hash fields counter values. Sets(ctx context.Context, in *HashFields, opts ...grpc.CallOption) (*empty.Empty, error) // Get hash keys. MultiGets(ctx context.Context, in *HashKeys, opts ...grpc.CallOption) (*HashValues, error) }
InnerHashClient is the client API for InnerHash service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerHashClient ¶
func NewInnerHashClient(cc *grpc.ClientConn) InnerHashClient
type InnerHashServer ¶
type InnerHashServer interface { // Increase hash field value. Increase(context.Context, *HashField) (*HashField, error) // Multiple increase hash fields values. MultiIncrease(context.Context, *HashFields) (*HashFields, error) // Get hash field counter value. Get(context.Context, *HashField) (*HashField, error) // Get hash fields counter values. Gets(context.Context, *HashFields) (*HashFields, error) // Set hash field counter value. Set(context.Context, *HashField) (*empty.Empty, error) // Set hash fields counter values. Sets(context.Context, *HashFields) (*empty.Empty, error) // Get hash keys. MultiGets(context.Context, *HashKeys) (*HashValues, error) }
InnerHashServer is the server API for InnerHash service.
type InnerKeyClient ¶
type InnerKeyClient interface { // Increase counter value. Increase(ctx context.Context, in *Key, opts ...grpc.CallOption) (*Key, error) // Multiple increase counter values. MultiIncrease(ctx context.Context, in *Keys, opts ...grpc.CallOption) (*Keys, error) // Get counter value. Get(ctx context.Context, in *Key, opts ...grpc.CallOption) (*Key, error) // Multi get counter values. Gets(ctx context.Context, in *Keys, opts ...grpc.CallOption) (*Keys, error) // Set counter value. Set(ctx context.Context, in *Key, opts ...grpc.CallOption) (*empty.Empty, error) // Multi set counter values. Sets(ctx context.Context, in *Keys, opts ...grpc.CallOption) (*empty.Empty, error) }
InnerKeyClient is the client API for InnerKey service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerKeyClient ¶
func NewInnerKeyClient(cc *grpc.ClientConn) InnerKeyClient
type InnerKeyServer ¶
type InnerKeyServer interface { // Increase counter value. Increase(context.Context, *Key) (*Key, error) // Multiple increase counter values. MultiIncrease(context.Context, *Keys) (*Keys, error) // Get counter value. Get(context.Context, *Key) (*Key, error) // Multi get counter values. Gets(context.Context, *Keys) (*Keys, error) // Set counter value. Set(context.Context, *Key) (*empty.Empty, error) // Multi set counter values. Sets(context.Context, *Keys) (*empty.Empty, error) }
InnerKeyServer is the server API for InnerKey service.
type Key ¶
type Key struct { Product *string `protobuf:"bytes,1,req,name=product" json:"product,omitempty"` Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` RelateId *string `protobuf:"bytes,3,req,name=relate_id,json=relateId" json:"relate_id,omitempty"` Value *int64 `protobuf:"varint,4,opt,name=value" json:"value,omitempty"` Expire *duration.Duration `protobuf:"bytes,5,opt,name=expire" json:"expire,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Counter key.
func (*Key) Descriptor ¶
func (*Key) GetProduct ¶
func (*Key) GetRelateId ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) Validate ¶
Validate checks the field values on Key with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Key) XXX_DiscardUnknown ¶
func (m *Key) XXX_DiscardUnknown()
func (*Key) XXX_Unmarshal ¶
type KeyValidationError ¶
type KeyValidationError struct {
// contains filtered or unexported fields
}
KeyValidationError is the validation error returned by Key.Validate if the designated constraints aren't met.
func (KeyValidationError) Cause ¶
func (e KeyValidationError) Cause() error
Cause function returns cause value.
func (KeyValidationError) Error ¶
func (e KeyValidationError) Error() string
Error satisfies the builtin error interface
func (KeyValidationError) ErrorName ¶
func (e KeyValidationError) ErrorName() string
ErrorName returns error name.
func (KeyValidationError) Field ¶
func (e KeyValidationError) Field() string
Field function returns field value.
func (KeyValidationError) Key ¶
func (e KeyValidationError) Key() bool
Key function returns key value.
func (KeyValidationError) Reason ¶
func (e KeyValidationError) Reason() string
Reason function returns reason value.
type Keys ¶
type Keys struct { Product *string `protobuf:"bytes,1,req,name=product" json:"product,omitempty"` Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` RelateIds []string `protobuf:"bytes,3,rep,name=relate_ids,json=relateIds" json:"relate_ids,omitempty"` Values map[string]int64 `` /* 133-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Multi keys.
func (*Keys) Descriptor ¶
func (*Keys) GetProduct ¶
func (*Keys) GetRelateIds ¶
func (*Keys) ProtoMessage ¶
func (*Keys) ProtoMessage()
func (*Keys) Validate ¶
Validate checks the field values on Keys with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Keys) XXX_DiscardUnknown ¶
func (m *Keys) XXX_DiscardUnknown()
func (*Keys) XXX_Unmarshal ¶
type KeysValidationError ¶
type KeysValidationError struct {
// contains filtered or unexported fields
}
KeysValidationError is the validation error returned by Keys.Validate if the designated constraints aren't met.
func (KeysValidationError) Cause ¶
func (e KeysValidationError) Cause() error
Cause function returns cause value.
func (KeysValidationError) Error ¶
func (e KeysValidationError) Error() string
Error satisfies the builtin error interface
func (KeysValidationError) ErrorName ¶
func (e KeysValidationError) ErrorName() string
ErrorName returns error name.
func (KeysValidationError) Field ¶
func (e KeysValidationError) Field() string
Field function returns field value.
func (KeysValidationError) Key ¶
func (e KeysValidationError) Key() bool
Key function returns key value.
func (KeysValidationError) Reason ¶
func (e KeysValidationError) Reason() string
Reason function returns reason value.
type UnimplementedInnerHashServer ¶
type UnimplementedInnerHashServer struct { }
UnimplementedInnerHashServer can be embedded to have forward compatible implementations.
func (*UnimplementedInnerHashServer) Gets ¶
func (*UnimplementedInnerHashServer) Gets(ctx context.Context, req *HashFields) (*HashFields, error)
func (*UnimplementedInnerHashServer) MultiGets ¶
func (*UnimplementedInnerHashServer) MultiGets(ctx context.Context, req *HashKeys) (*HashValues, error)
func (*UnimplementedInnerHashServer) MultiIncrease ¶
func (*UnimplementedInnerHashServer) MultiIncrease(ctx context.Context, req *HashFields) (*HashFields, error)
func (*UnimplementedInnerHashServer) Sets ¶
func (*UnimplementedInnerHashServer) Sets(ctx context.Context, req *HashFields) (*empty.Empty, error)
type UnimplementedInnerKeyServer ¶
type UnimplementedInnerKeyServer struct { }
UnimplementedInnerKeyServer can be embedded to have forward compatible implementations.