counter

package
v0.0.0-...-49c8f32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 30 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*HashField) GetField

func (m *HashField) GetField() string

func (*HashField) GetProduct

func (m *HashField) GetProduct() string

func (*HashField) GetRelateId

func (m *HashField) GetRelateId() string

func (*HashField) GetType

func (m *HashField) GetType() string

func (*HashField) GetValue

func (m *HashField) GetValue() int64

func (*HashField) ProtoMessage

func (*HashField) ProtoMessage()

func (*HashField) Reset

func (m *HashField) Reset()

func (*HashField) String

func (m *HashField) String() string

func (*HashField) Validate

func (m *HashField) Validate() error

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 (m *HashField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashField) XXX_Merge

func (m *HashField) XXX_Merge(src proto.Message)

func (*HashField) XXX_Size

func (m *HashField) XXX_Size() int

func (*HashField) XXX_Unmarshal

func (m *HashField) XXX_Unmarshal(b []byte) error

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

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

Error satisfies the builtin error interface

func (HashFieldsValidationError) ErrorName

func (e HashFieldsValidationError) ErrorName() string

ErrorName returns error name.

func (HashFieldsValidationError) Field

Field function returns field value.

func (HashFieldsValidationError) Key

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) Descriptor() ([]byte, []int)

func (*HashKeys) GetProduct

func (m *HashKeys) GetProduct() string

func (*HashKeys) GetRelateIds

func (m *HashKeys) GetRelateIds() []string

func (*HashKeys) GetType

func (m *HashKeys) GetType() string

func (*HashKeys) ProtoMessage

func (*HashKeys) ProtoMessage()

func (*HashKeys) Reset

func (m *HashKeys) Reset()

func (*HashKeys) String

func (m *HashKeys) String() string

func (*HashKeys) Validate

func (m *HashKeys) Validate() error

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 (m *HashKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashKeys) XXX_Merge

func (m *HashKeys) XXX_Merge(src proto.Message)

func (*HashKeys) XXX_Size

func (m *HashKeys) XXX_Size() int

func (*HashKeys) XXX_Unmarshal

func (m *HashKeys) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*HashValue) GetFieldValues

func (m *HashValue) GetFieldValues() map[string]int64

func (*HashValue) ProtoMessage

func (*HashValue) ProtoMessage()

func (*HashValue) Reset

func (m *HashValue) Reset()

func (*HashValue) String

func (m *HashValue) String() string

func (*HashValue) Validate

func (m *HashValue) Validate() error

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 (m *HashValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashValue) XXX_Merge

func (m *HashValue) XXX_Merge(src proto.Message)

func (*HashValue) XXX_Size

func (m *HashValue) XXX_Size() int

func (*HashValue) XXX_Unmarshal

func (m *HashValue) XXX_Unmarshal(b []byte) error

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

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

Error satisfies the builtin error interface

func (HashValuesValidationError) ErrorName

func (e HashValuesValidationError) ErrorName() string

ErrorName returns error name.

func (HashValuesValidationError) Field

Field function returns field value.

func (HashValuesValidationError) Key

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) Descriptor() ([]byte, []int)

func (*Key) GetExpire

func (m *Key) GetExpire() *duration.Duration

func (*Key) GetProduct

func (m *Key) GetProduct() string

func (*Key) GetRelateId

func (m *Key) GetRelateId() string

func (*Key) GetType

func (m *Key) GetType() string

func (*Key) GetValue

func (m *Key) GetValue() int64

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

func (*Key) Validate

func (m *Key) Validate() error

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_Marshal

func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Key) XXX_Merge

func (m *Key) XXX_Merge(src proto.Message)

func (*Key) XXX_Size

func (m *Key) XXX_Size() int

func (*Key) XXX_Unmarshal

func (m *Key) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Keys) GetProduct

func (m *Keys) GetProduct() string

func (*Keys) GetRelateIds

func (m *Keys) GetRelateIds() []string

func (*Keys) GetType

func (m *Keys) GetType() string

func (*Keys) GetValues

func (m *Keys) GetValues() map[string]int64

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) Reset

func (m *Keys) Reset()

func (*Keys) String

func (m *Keys) String() string

func (*Keys) Validate

func (m *Keys) Validate() error

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_Marshal

func (m *Keys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Keys) XXX_Merge

func (m *Keys) XXX_Merge(src proto.Message)

func (*Keys) XXX_Size

func (m *Keys) XXX_Size() int

func (*Keys) XXX_Unmarshal

func (m *Keys) XXX_Unmarshal(b []byte) error

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) Get

func (*UnimplementedInnerHashServer) Gets

func (*UnimplementedInnerHashServer) Increase

func (*UnimplementedInnerHashServer) MultiGets

func (*UnimplementedInnerHashServer) MultiIncrease

func (*UnimplementedInnerHashServer) Set

func (*UnimplementedInnerHashServer) Sets

type UnimplementedInnerKeyServer

type UnimplementedInnerKeyServer struct {
}

UnimplementedInnerKeyServer can be embedded to have forward compatible implementations.

func (*UnimplementedInnerKeyServer) Get

func (*UnimplementedInnerKeyServer) Gets

func (*UnimplementedInnerKeyServer) Increase

func (*UnimplementedInnerKeyServer) Increase(ctx context.Context, req *Key) (*Key, error)

func (*UnimplementedInnerKeyServer) MultiIncrease

func (*UnimplementedInnerKeyServer) MultiIncrease(ctx context.Context, req *Keys) (*Keys, error)

func (*UnimplementedInnerKeyServer) Set

func (*UnimplementedInnerKeyServer) Sets

Jump to

Keyboard shortcuts

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