Documentation ¶
Overview ¶
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterLockServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLockServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LockServiceClient) error
- func RegisterLockServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLockServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LockServiceServer) error
- func RegisterLockServiceServer(s grpc.ServiceRegistrar, srv LockServiceServer)
- type CreateLockRequest
- func (*CreateLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLockRequest) GetService() string
- func (x *CreateLockRequest) GetWho() string
- func (*CreateLockRequest) ProtoMessage()
- func (x *CreateLockRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLockRequest) Reset()
- func (x *CreateLockRequest) String() string
- func (m *CreateLockRequest) Validate() error
- func (m *CreateLockRequest) ValidateAll() error
- type CreateLockRequestMultiError
- type CreateLockRequestValidationError
- func (e CreateLockRequestValidationError) Cause() error
- func (e CreateLockRequestValidationError) Error() string
- func (e CreateLockRequestValidationError) ErrorName() string
- func (e CreateLockRequestValidationError) Field() string
- func (e CreateLockRequestValidationError) Key() bool
- func (e CreateLockRequestValidationError) Reason() string
- type CreateLockResponse
- func (*CreateLockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLockResponse) GetLock() *Lock
- func (*CreateLockResponse) ProtoMessage()
- func (x *CreateLockResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLockResponse) Reset()
- func (x *CreateLockResponse) String() string
- func (m *CreateLockResponse) Validate() error
- func (m *CreateLockResponse) ValidateAll() error
- type CreateLockResponseMultiError
- type CreateLockResponseValidationError
- func (e CreateLockResponseValidationError) Cause() error
- func (e CreateLockResponseValidationError) Error() string
- func (e CreateLockResponseValidationError) ErrorName() string
- func (e CreateLockResponseValidationError) Field() string
- func (e CreateLockResponseValidationError) Key() bool
- func (e CreateLockResponseValidationError) Reason() string
- type GetLockRequest
- func (*GetLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLockRequest) GetId() string
- func (*GetLockRequest) ProtoMessage()
- func (x *GetLockRequest) ProtoReflect() protoreflect.Message
- func (x *GetLockRequest) Reset()
- func (x *GetLockRequest) String() string
- func (m *GetLockRequest) Validate() error
- func (m *GetLockRequest) ValidateAll() error
- type GetLockRequestMultiError
- type GetLockRequestValidationError
- func (e GetLockRequestValidationError) Cause() error
- func (e GetLockRequestValidationError) Error() string
- func (e GetLockRequestValidationError) ErrorName() string
- func (e GetLockRequestValidationError) Field() string
- func (e GetLockRequestValidationError) Key() bool
- func (e GetLockRequestValidationError) Reason() string
- type GetLockResponse
- func (*GetLockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLockResponse) GetLock() *Lock
- func (*GetLockResponse) ProtoMessage()
- func (x *GetLockResponse) ProtoReflect() protoreflect.Message
- func (x *GetLockResponse) Reset()
- func (x *GetLockResponse) String() string
- func (m *GetLockResponse) Validate() error
- func (m *GetLockResponse) ValidateAll() error
- type GetLockResponseMultiError
- type GetLockResponseValidationError
- func (e GetLockResponseValidationError) Cause() error
- func (e GetLockResponseValidationError) Error() string
- func (e GetLockResponseValidationError) ErrorName() string
- func (e GetLockResponseValidationError) Field() string
- func (e GetLockResponseValidationError) Key() bool
- func (e GetLockResponseValidationError) Reason() string
- type ListLocksRequest
- func (*ListLocksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListLocksRequest) GetPage() *wrapperspb.Int32Value
- func (x *ListLocksRequest) GetPerPage() *wrapperspb.UInt32Value
- func (*ListLocksRequest) ProtoMessage()
- func (x *ListLocksRequest) ProtoReflect() protoreflect.Message
- func (x *ListLocksRequest) Reset()
- func (x *ListLocksRequest) String() string
- func (m *ListLocksRequest) Validate() error
- func (m *ListLocksRequest) ValidateAll() error
- type ListLocksRequestMultiError
- type ListLocksRequestValidationError
- func (e ListLocksRequestValidationError) Cause() error
- func (e ListLocksRequestValidationError) Error() string
- func (e ListLocksRequestValidationError) ErrorName() string
- func (e ListLocksRequestValidationError) Field() string
- func (e ListLocksRequestValidationError) Key() bool
- func (e ListLocksRequestValidationError) Reason() string
- type ListLocksResponse
- func (*ListLocksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLocksResponse) GetLocks() []*Lock
- func (x *ListLocksResponse) GetTotalCount() uint32
- func (*ListLocksResponse) ProtoMessage()
- func (x *ListLocksResponse) ProtoReflect() protoreflect.Message
- func (x *ListLocksResponse) Reset()
- func (x *ListLocksResponse) String() string
- func (m *ListLocksResponse) Validate() error
- func (m *ListLocksResponse) ValidateAll() error
- type ListLocksResponseMultiError
- type ListLocksResponseValidationError
- func (e ListLocksResponseValidationError) Cause() error
- func (e ListLocksResponseValidationError) Error() string
- func (e ListLocksResponseValidationError) ErrorName() string
- func (e ListLocksResponseValidationError) Field() string
- func (e ListLocksResponseValidationError) Key() bool
- func (e ListLocksResponseValidationError) Reason() string
- type Lock
- func (*Lock) Descriptor() ([]byte, []int)deprecated
- func (x *Lock) GetCreatedAt() *timestamppb.Timestamp
- func (x *Lock) GetId() string
- func (x *Lock) GetService() string
- func (x *Lock) GetWho() string
- func (*Lock) ProtoMessage()
- func (x *Lock) ProtoReflect() protoreflect.Message
- func (x *Lock) Reset()
- func (x *Lock) String() string
- func (m *Lock) Validate() error
- func (m *Lock) ValidateAll() error
- type LockMultiError
- type LockServiceClient
- type LockServiceServer
- type LockValidationError
- type UnLockRequest
- func (*UnLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnLockRequest) GetId() string
- func (*UnLockRequest) ProtoMessage()
- func (x *UnLockRequest) ProtoReflect() protoreflect.Message
- func (x *UnLockRequest) Reset()
- func (x *UnLockRequest) String() string
- func (m *UnLockRequest) Validate() error
- func (m *UnLockRequest) ValidateAll() error
- type UnLockRequestMultiError
- type UnLockRequestValidationError
- func (e UnLockRequestValidationError) Cause() error
- func (e UnLockRequestValidationError) Error() string
- func (e UnLockRequestValidationError) ErrorName() string
- func (e UnLockRequestValidationError) Field() string
- func (e UnLockRequestValidationError) Key() bool
- func (e UnLockRequestValidationError) Reason() string
- type UnLockResponse
- func (*UnLockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnLockResponse) GetCount() int64
- func (x *UnLockResponse) GetId() string
- func (x *UnLockResponse) GetMessage() string
- func (*UnLockResponse) ProtoMessage()
- func (x *UnLockResponse) ProtoReflect() protoreflect.Message
- func (x *UnLockResponse) Reset()
- func (x *UnLockResponse) String() string
- func (m *UnLockResponse) Validate() error
- func (m *UnLockResponse) ValidateAll() error
- type UnLockResponseMultiError
- type UnLockResponseValidationError
- func (e UnLockResponseValidationError) Cause() error
- func (e UnLockResponseValidationError) Error() string
- func (e UnLockResponseValidationError) ErrorName() string
- func (e UnLockResponseValidationError) Field() string
- func (e UnLockResponseValidationError) Key() bool
- func (e UnLockResponseValidationError) Reason() string
- type UnimplementedLockServiceServer
- func (UnimplementedLockServiceServer) CreateLock(context.Context, *CreateLockRequest) (*CreateLockResponse, error)
- func (UnimplementedLockServiceServer) GetLock(context.Context, *GetLockRequest) (*GetLockResponse, error)
- func (UnimplementedLockServiceServer) ListLocks(context.Context, *ListLocksRequest) (*ListLocksResponse, error)
- func (UnimplementedLockServiceServer) UnLock(context.Context, *UnLockRequest) (*UnLockResponse, error)
- type UnsafeLockServiceServer
Constants ¶
const ( LockService_CreateLock_FullMethodName = "/tracker.lock.v1alpha1.LockService/CreateLock" LockService_GetLock_FullMethodName = "/tracker.lock.v1alpha1.LockService/GetLock" LockService_UnLock_FullMethodName = "/tracker.lock.v1alpha1.LockService/UnLock" LockService_ListLocks_FullMethodName = "/tracker.lock.v1alpha1.LockService/ListLocks" )
Variables ¶
var File_proto_lock_v1alpha1_lock_proto protoreflect.FileDescriptor
var LockService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tracker.lock.v1alpha1.LockService", HandlerType: (*LockServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateLock", Handler: _LockService_CreateLock_Handler, }, { MethodName: "GetLock", Handler: _LockService_GetLock_Handler, }, { MethodName: "UnLock", Handler: _LockService_UnLock_Handler, }, { MethodName: "ListLocks", Handler: _LockService_ListLocks_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/lock/v1alpha1/lock.proto", }
LockService_ServiceDesc is the grpc.ServiceDesc for LockService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLockServiceHandler ¶
func RegisterLockServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLockServiceHandler registers the http handlers for service LockService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLockServiceHandlerClient ¶
func RegisterLockServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LockServiceClient) error
RegisterLockServiceHandlerClient registers the http handlers for service LockService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LockServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LockServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LockServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterLockServiceHandlerFromEndpoint ¶
func RegisterLockServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLockServiceHandlerFromEndpoint is same as RegisterLockServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLockServiceHandlerServer ¶
func RegisterLockServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LockServiceServer) error
RegisterLockServiceHandlerServer registers the http handlers for service LockService to "mux". UnaryRPC :call LockServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLockServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterLockServiceServer ¶
func RegisterLockServiceServer(s grpc.ServiceRegistrar, srv LockServiceServer)
Types ¶
type CreateLockRequest ¶
type CreateLockRequest struct { Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` Who string `protobuf:"bytes,3,opt,name=who,proto3" json:"who,omitempty"` // contains filtered or unexported fields }
func (*CreateLockRequest) Descriptor
deprecated
func (*CreateLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLockRequest.ProtoReflect.Descriptor instead.
func (*CreateLockRequest) GetService ¶
func (x *CreateLockRequest) GetService() string
func (*CreateLockRequest) GetWho ¶
func (x *CreateLockRequest) GetWho() string
func (*CreateLockRequest) ProtoMessage ¶
func (*CreateLockRequest) ProtoMessage()
func (*CreateLockRequest) ProtoReflect ¶
func (x *CreateLockRequest) ProtoReflect() protoreflect.Message
func (*CreateLockRequest) Reset ¶
func (x *CreateLockRequest) Reset()
func (*CreateLockRequest) String ¶
func (x *CreateLockRequest) String() string
func (*CreateLockRequest) Validate ¶
func (m *CreateLockRequest) Validate() error
Validate checks the field values on CreateLockRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateLockRequest) ValidateAll ¶
func (m *CreateLockRequest) ValidateAll() error
ValidateAll checks the field values on CreateLockRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateLockRequestMultiError, or nil if none found.
type CreateLockRequestMultiError ¶
type CreateLockRequestMultiError []error
CreateLockRequestMultiError is an error wrapping multiple validation errors returned by CreateLockRequest.ValidateAll() if the designated constraints aren't met.
func (CreateLockRequestMultiError) AllErrors ¶
func (m CreateLockRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateLockRequestMultiError) Error ¶
func (m CreateLockRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateLockRequestValidationError ¶
type CreateLockRequestValidationError struct {
// contains filtered or unexported fields
}
CreateLockRequestValidationError is the validation error returned by CreateLockRequest.Validate if the designated constraints aren't met.
func (CreateLockRequestValidationError) Cause ¶
func (e CreateLockRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateLockRequestValidationError) Error ¶
func (e CreateLockRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateLockRequestValidationError) ErrorName ¶
func (e CreateLockRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateLockRequestValidationError) Field ¶
func (e CreateLockRequestValidationError) Field() string
Field function returns field value.
func (CreateLockRequestValidationError) Key ¶
func (e CreateLockRequestValidationError) Key() bool
Key function returns key value.
func (CreateLockRequestValidationError) Reason ¶
func (e CreateLockRequestValidationError) Reason() string
Reason function returns reason value.
type CreateLockResponse ¶
type CreateLockResponse struct { Lock *Lock `protobuf:"bytes,1,opt,name=lock,proto3" json:"lock,omitempty"` // contains filtered or unexported fields }
func (*CreateLockResponse) Descriptor
deprecated
func (*CreateLockResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLockResponse.ProtoReflect.Descriptor instead.
func (*CreateLockResponse) GetLock ¶
func (x *CreateLockResponse) GetLock() *Lock
func (*CreateLockResponse) ProtoMessage ¶
func (*CreateLockResponse) ProtoMessage()
func (*CreateLockResponse) ProtoReflect ¶
func (x *CreateLockResponse) ProtoReflect() protoreflect.Message
func (*CreateLockResponse) Reset ¶
func (x *CreateLockResponse) Reset()
func (*CreateLockResponse) String ¶
func (x *CreateLockResponse) String() string
func (*CreateLockResponse) Validate ¶
func (m *CreateLockResponse) Validate() error
Validate checks the field values on CreateLockResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateLockResponse) ValidateAll ¶
func (m *CreateLockResponse) ValidateAll() error
ValidateAll checks the field values on CreateLockResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateLockResponseMultiError, or nil if none found.
type CreateLockResponseMultiError ¶
type CreateLockResponseMultiError []error
CreateLockResponseMultiError is an error wrapping multiple validation errors returned by CreateLockResponse.ValidateAll() if the designated constraints aren't met.
func (CreateLockResponseMultiError) AllErrors ¶
func (m CreateLockResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateLockResponseMultiError) Error ¶
func (m CreateLockResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateLockResponseValidationError ¶
type CreateLockResponseValidationError struct {
// contains filtered or unexported fields
}
CreateLockResponseValidationError is the validation error returned by CreateLockResponse.Validate if the designated constraints aren't met.
func (CreateLockResponseValidationError) Cause ¶
func (e CreateLockResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateLockResponseValidationError) Error ¶
func (e CreateLockResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateLockResponseValidationError) ErrorName ¶
func (e CreateLockResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateLockResponseValidationError) Field ¶
func (e CreateLockResponseValidationError) Field() string
Field function returns field value.
func (CreateLockResponseValidationError) Key ¶
func (e CreateLockResponseValidationError) Key() bool
Key function returns key value.
func (CreateLockResponseValidationError) Reason ¶
func (e CreateLockResponseValidationError) Reason() string
Reason function returns reason value.
type GetLockRequest ¶
type GetLockRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetLockRequest) Descriptor
deprecated
func (*GetLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLockRequest.ProtoReflect.Descriptor instead.
func (*GetLockRequest) GetId ¶
func (x *GetLockRequest) GetId() string
func (*GetLockRequest) ProtoMessage ¶
func (*GetLockRequest) ProtoMessage()
func (*GetLockRequest) ProtoReflect ¶
func (x *GetLockRequest) ProtoReflect() protoreflect.Message
func (*GetLockRequest) Reset ¶
func (x *GetLockRequest) Reset()
func (*GetLockRequest) String ¶
func (x *GetLockRequest) String() string
func (*GetLockRequest) Validate ¶
func (m *GetLockRequest) Validate() error
Validate checks the field values on GetLockRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetLockRequest) ValidateAll ¶
func (m *GetLockRequest) ValidateAll() error
ValidateAll checks the field values on GetLockRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLockRequestMultiError, or nil if none found.
type GetLockRequestMultiError ¶
type GetLockRequestMultiError []error
GetLockRequestMultiError is an error wrapping multiple validation errors returned by GetLockRequest.ValidateAll() if the designated constraints aren't met.
func (GetLockRequestMultiError) AllErrors ¶
func (m GetLockRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetLockRequestMultiError) Error ¶
func (m GetLockRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetLockRequestValidationError ¶
type GetLockRequestValidationError struct {
// contains filtered or unexported fields
}
GetLockRequestValidationError is the validation error returned by GetLockRequest.Validate if the designated constraints aren't met.
func (GetLockRequestValidationError) Cause ¶
func (e GetLockRequestValidationError) Cause() error
Cause function returns cause value.
func (GetLockRequestValidationError) Error ¶
func (e GetLockRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetLockRequestValidationError) ErrorName ¶
func (e GetLockRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetLockRequestValidationError) Field ¶
func (e GetLockRequestValidationError) Field() string
Field function returns field value.
func (GetLockRequestValidationError) Key ¶
func (e GetLockRequestValidationError) Key() bool
Key function returns key value.
func (GetLockRequestValidationError) Reason ¶
func (e GetLockRequestValidationError) Reason() string
Reason function returns reason value.
type GetLockResponse ¶
type GetLockResponse struct { Lock *Lock `protobuf:"bytes,1,opt,name=lock,proto3" json:"lock,omitempty"` // contains filtered or unexported fields }
func (*GetLockResponse) Descriptor
deprecated
func (*GetLockResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLockResponse.ProtoReflect.Descriptor instead.
func (*GetLockResponse) GetLock ¶
func (x *GetLockResponse) GetLock() *Lock
func (*GetLockResponse) ProtoMessage ¶
func (*GetLockResponse) ProtoMessage()
func (*GetLockResponse) ProtoReflect ¶
func (x *GetLockResponse) ProtoReflect() protoreflect.Message
func (*GetLockResponse) Reset ¶
func (x *GetLockResponse) Reset()
func (*GetLockResponse) String ¶
func (x *GetLockResponse) String() string
func (*GetLockResponse) Validate ¶
func (m *GetLockResponse) Validate() error
Validate checks the field values on GetLockResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetLockResponse) ValidateAll ¶
func (m *GetLockResponse) ValidateAll() error
ValidateAll checks the field values on GetLockResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLockResponseMultiError, or nil if none found.
type GetLockResponseMultiError ¶
type GetLockResponseMultiError []error
GetLockResponseMultiError is an error wrapping multiple validation errors returned by GetLockResponse.ValidateAll() if the designated constraints aren't met.
func (GetLockResponseMultiError) AllErrors ¶
func (m GetLockResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetLockResponseMultiError) Error ¶
func (m GetLockResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetLockResponseValidationError ¶
type GetLockResponseValidationError struct {
// contains filtered or unexported fields
}
GetLockResponseValidationError is the validation error returned by GetLockResponse.Validate if the designated constraints aren't met.
func (GetLockResponseValidationError) Cause ¶
func (e GetLockResponseValidationError) Cause() error
Cause function returns cause value.
func (GetLockResponseValidationError) Error ¶
func (e GetLockResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetLockResponseValidationError) ErrorName ¶
func (e GetLockResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetLockResponseValidationError) Field ¶
func (e GetLockResponseValidationError) Field() string
Field function returns field value.
func (GetLockResponseValidationError) Key ¶
func (e GetLockResponseValidationError) Key() bool
Key function returns key value.
func (GetLockResponseValidationError) Reason ¶
func (e GetLockResponseValidationError) Reason() string
Reason function returns reason value.
type ListLocksRequest ¶
type ListLocksRequest struct { PerPage *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` Page *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListLocksRequest) Descriptor
deprecated
func (*ListLocksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLocksRequest.ProtoReflect.Descriptor instead.
func (*ListLocksRequest) GetPage ¶
func (x *ListLocksRequest) GetPage() *wrapperspb.Int32Value
func (*ListLocksRequest) GetPerPage ¶
func (x *ListLocksRequest) GetPerPage() *wrapperspb.UInt32Value
func (*ListLocksRequest) ProtoMessage ¶
func (*ListLocksRequest) ProtoMessage()
func (*ListLocksRequest) ProtoReflect ¶
func (x *ListLocksRequest) ProtoReflect() protoreflect.Message
func (*ListLocksRequest) Reset ¶
func (x *ListLocksRequest) Reset()
func (*ListLocksRequest) String ¶
func (x *ListLocksRequest) String() string
func (*ListLocksRequest) Validate ¶
func (m *ListLocksRequest) Validate() error
Validate checks the field values on ListLocksRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListLocksRequest) ValidateAll ¶
func (m *ListLocksRequest) ValidateAll() error
ValidateAll checks the field values on ListLocksRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListLocksRequestMultiError, or nil if none found.
type ListLocksRequestMultiError ¶
type ListLocksRequestMultiError []error
ListLocksRequestMultiError is an error wrapping multiple validation errors returned by ListLocksRequest.ValidateAll() if the designated constraints aren't met.
func (ListLocksRequestMultiError) AllErrors ¶
func (m ListLocksRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListLocksRequestMultiError) Error ¶
func (m ListLocksRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListLocksRequestValidationError ¶
type ListLocksRequestValidationError struct {
// contains filtered or unexported fields
}
ListLocksRequestValidationError is the validation error returned by ListLocksRequest.Validate if the designated constraints aren't met.
func (ListLocksRequestValidationError) Cause ¶
func (e ListLocksRequestValidationError) Cause() error
Cause function returns cause value.
func (ListLocksRequestValidationError) Error ¶
func (e ListLocksRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListLocksRequestValidationError) ErrorName ¶
func (e ListLocksRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListLocksRequestValidationError) Field ¶
func (e ListLocksRequestValidationError) Field() string
Field function returns field value.
func (ListLocksRequestValidationError) Key ¶
func (e ListLocksRequestValidationError) Key() bool
Key function returns key value.
func (ListLocksRequestValidationError) Reason ¶
func (e ListLocksRequestValidationError) Reason() string
Reason function returns reason value.
type ListLocksResponse ¶
type ListLocksResponse struct { Locks []*Lock `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks,omitempty"` TotalCount uint32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
func (*ListLocksResponse) Descriptor
deprecated
func (*ListLocksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLocksResponse.ProtoReflect.Descriptor instead.
func (*ListLocksResponse) GetLocks ¶
func (x *ListLocksResponse) GetLocks() []*Lock
func (*ListLocksResponse) GetTotalCount ¶
func (x *ListLocksResponse) GetTotalCount() uint32
func (*ListLocksResponse) ProtoMessage ¶
func (*ListLocksResponse) ProtoMessage()
func (*ListLocksResponse) ProtoReflect ¶
func (x *ListLocksResponse) ProtoReflect() protoreflect.Message
func (*ListLocksResponse) Reset ¶
func (x *ListLocksResponse) Reset()
func (*ListLocksResponse) String ¶
func (x *ListLocksResponse) String() string
func (*ListLocksResponse) Validate ¶
func (m *ListLocksResponse) Validate() error
Validate checks the field values on ListLocksResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListLocksResponse) ValidateAll ¶
func (m *ListLocksResponse) ValidateAll() error
ValidateAll checks the field values on ListLocksResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListLocksResponseMultiError, or nil if none found.
type ListLocksResponseMultiError ¶
type ListLocksResponseMultiError []error
ListLocksResponseMultiError is an error wrapping multiple validation errors returned by ListLocksResponse.ValidateAll() if the designated constraints aren't met.
func (ListLocksResponseMultiError) AllErrors ¶
func (m ListLocksResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListLocksResponseMultiError) Error ¶
func (m ListLocksResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListLocksResponseValidationError ¶
type ListLocksResponseValidationError struct {
// contains filtered or unexported fields
}
ListLocksResponseValidationError is the validation error returned by ListLocksResponse.Validate if the designated constraints aren't met.
func (ListLocksResponseValidationError) Cause ¶
func (e ListLocksResponseValidationError) Cause() error
Cause function returns cause value.
func (ListLocksResponseValidationError) Error ¶
func (e ListLocksResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListLocksResponseValidationError) ErrorName ¶
func (e ListLocksResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListLocksResponseValidationError) Field ¶
func (e ListLocksResponseValidationError) Field() string
Field function returns field value.
func (ListLocksResponseValidationError) Key ¶
func (e ListLocksResponseValidationError) Key() bool
Key function returns key value.
func (ListLocksResponseValidationError) Reason ¶
func (e ListLocksResponseValidationError) Reason() string
Reason function returns reason value.
type Lock ¶
type Lock struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` Who string `protobuf:"bytes,3,opt,name=who,proto3" json:"who,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Lock) Descriptor
deprecated
func (*Lock) GetCreatedAt ¶
func (x *Lock) GetCreatedAt() *timestamppb.Timestamp
func (*Lock) GetService ¶
func (*Lock) ProtoMessage ¶
func (*Lock) ProtoMessage()
func (*Lock) ProtoReflect ¶
func (x *Lock) ProtoReflect() protoreflect.Message
func (*Lock) Validate ¶
Validate checks the field values on Lock with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Lock) ValidateAll ¶
ValidateAll checks the field values on Lock with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LockMultiError, or nil if none found.
type LockMultiError ¶
type LockMultiError []error
LockMultiError is an error wrapping multiple validation errors returned by Lock.ValidateAll() if the designated constraints aren't met.
func (LockMultiError) AllErrors ¶
func (m LockMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LockMultiError) Error ¶
func (m LockMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LockServiceClient ¶
type LockServiceClient interface { CreateLock(ctx context.Context, in *CreateLockRequest, opts ...grpc.CallOption) (*CreateLockResponse, error) GetLock(ctx context.Context, in *GetLockRequest, opts ...grpc.CallOption) (*GetLockResponse, error) UnLock(ctx context.Context, in *UnLockRequest, opts ...grpc.CallOption) (*UnLockResponse, error) ListLocks(ctx context.Context, in *ListLocksRequest, opts ...grpc.CallOption) (*ListLocksResponse, error) }
LockServiceClient is the client API for LockService 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 NewLockServiceClient ¶
func NewLockServiceClient(cc grpc.ClientConnInterface) LockServiceClient
type LockServiceServer ¶
type LockServiceServer interface { CreateLock(context.Context, *CreateLockRequest) (*CreateLockResponse, error) GetLock(context.Context, *GetLockRequest) (*GetLockResponse, error) UnLock(context.Context, *UnLockRequest) (*UnLockResponse, error) ListLocks(context.Context, *ListLocksRequest) (*ListLocksResponse, error) // contains filtered or unexported methods }
LockServiceServer is the server API for LockService service. All implementations must embed UnimplementedLockServiceServer for forward compatibility.
type LockValidationError ¶
type LockValidationError struct {
// contains filtered or unexported fields
}
LockValidationError is the validation error returned by Lock.Validate if the designated constraints aren't met.
func (LockValidationError) Cause ¶
func (e LockValidationError) Cause() error
Cause function returns cause value.
func (LockValidationError) Error ¶
func (e LockValidationError) Error() string
Error satisfies the builtin error interface
func (LockValidationError) ErrorName ¶
func (e LockValidationError) ErrorName() string
ErrorName returns error name.
func (LockValidationError) Field ¶
func (e LockValidationError) Field() string
Field function returns field value.
func (LockValidationError) Key ¶
func (e LockValidationError) Key() bool
Key function returns key value.
func (LockValidationError) Reason ¶
func (e LockValidationError) Reason() string
Reason function returns reason value.
type UnLockRequest ¶
type UnLockRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UnLockRequest) Descriptor
deprecated
func (*UnLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnLockRequest.ProtoReflect.Descriptor instead.
func (*UnLockRequest) GetId ¶
func (x *UnLockRequest) GetId() string
func (*UnLockRequest) ProtoMessage ¶
func (*UnLockRequest) ProtoMessage()
func (*UnLockRequest) ProtoReflect ¶
func (x *UnLockRequest) ProtoReflect() protoreflect.Message
func (*UnLockRequest) Reset ¶
func (x *UnLockRequest) Reset()
func (*UnLockRequest) String ¶
func (x *UnLockRequest) String() string
func (*UnLockRequest) Validate ¶
func (m *UnLockRequest) Validate() error
Validate checks the field values on UnLockRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UnLockRequest) ValidateAll ¶
func (m *UnLockRequest) ValidateAll() error
ValidateAll checks the field values on UnLockRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnLockRequestMultiError, or nil if none found.
type UnLockRequestMultiError ¶
type UnLockRequestMultiError []error
UnLockRequestMultiError is an error wrapping multiple validation errors returned by UnLockRequest.ValidateAll() if the designated constraints aren't met.
func (UnLockRequestMultiError) AllErrors ¶
func (m UnLockRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnLockRequestMultiError) Error ¶
func (m UnLockRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnLockRequestValidationError ¶
type UnLockRequestValidationError struct {
// contains filtered or unexported fields
}
UnLockRequestValidationError is the validation error returned by UnLockRequest.Validate if the designated constraints aren't met.
func (UnLockRequestValidationError) Cause ¶
func (e UnLockRequestValidationError) Cause() error
Cause function returns cause value.
func (UnLockRequestValidationError) Error ¶
func (e UnLockRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnLockRequestValidationError) ErrorName ¶
func (e UnLockRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnLockRequestValidationError) Field ¶
func (e UnLockRequestValidationError) Field() string
Field function returns field value.
func (UnLockRequestValidationError) Key ¶
func (e UnLockRequestValidationError) Key() bool
Key function returns key value.
func (UnLockRequestValidationError) Reason ¶
func (e UnLockRequestValidationError) Reason() string
Reason function returns reason value.
type UnLockResponse ¶
type UnLockResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Count int64 `protobuf:"varint,10,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*UnLockResponse) Descriptor
deprecated
func (*UnLockResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnLockResponse.ProtoReflect.Descriptor instead.
func (*UnLockResponse) GetCount ¶
func (x *UnLockResponse) GetCount() int64
func (*UnLockResponse) GetId ¶
func (x *UnLockResponse) GetId() string
func (*UnLockResponse) GetMessage ¶
func (x *UnLockResponse) GetMessage() string
func (*UnLockResponse) ProtoMessage ¶
func (*UnLockResponse) ProtoMessage()
func (*UnLockResponse) ProtoReflect ¶
func (x *UnLockResponse) ProtoReflect() protoreflect.Message
func (*UnLockResponse) Reset ¶
func (x *UnLockResponse) Reset()
func (*UnLockResponse) String ¶
func (x *UnLockResponse) String() string
func (*UnLockResponse) Validate ¶
func (m *UnLockResponse) Validate() error
Validate checks the field values on UnLockResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UnLockResponse) ValidateAll ¶
func (m *UnLockResponse) ValidateAll() error
ValidateAll checks the field values on UnLockResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnLockResponseMultiError, or nil if none found.
type UnLockResponseMultiError ¶
type UnLockResponseMultiError []error
UnLockResponseMultiError is an error wrapping multiple validation errors returned by UnLockResponse.ValidateAll() if the designated constraints aren't met.
func (UnLockResponseMultiError) AllErrors ¶
func (m UnLockResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnLockResponseMultiError) Error ¶
func (m UnLockResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnLockResponseValidationError ¶
type UnLockResponseValidationError struct {
// contains filtered or unexported fields
}
UnLockResponseValidationError is the validation error returned by UnLockResponse.Validate if the designated constraints aren't met.
func (UnLockResponseValidationError) Cause ¶
func (e UnLockResponseValidationError) Cause() error
Cause function returns cause value.
func (UnLockResponseValidationError) Error ¶
func (e UnLockResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnLockResponseValidationError) ErrorName ¶
func (e UnLockResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnLockResponseValidationError) Field ¶
func (e UnLockResponseValidationError) Field() string
Field function returns field value.
func (UnLockResponseValidationError) Key ¶
func (e UnLockResponseValidationError) Key() bool
Key function returns key value.
func (UnLockResponseValidationError) Reason ¶
func (e UnLockResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedLockServiceServer ¶
type UnimplementedLockServiceServer struct{}
UnimplementedLockServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedLockServiceServer) CreateLock ¶
func (UnimplementedLockServiceServer) CreateLock(context.Context, *CreateLockRequest) (*CreateLockResponse, error)
func (UnimplementedLockServiceServer) GetLock ¶
func (UnimplementedLockServiceServer) GetLock(context.Context, *GetLockRequest) (*GetLockResponse, error)
func (UnimplementedLockServiceServer) ListLocks ¶
func (UnimplementedLockServiceServer) ListLocks(context.Context, *ListLocksRequest) (*ListLocksResponse, error)
func (UnimplementedLockServiceServer) UnLock ¶
func (UnimplementedLockServiceServer) UnLock(context.Context, *UnLockRequest) (*UnLockResponse, error)
type UnsafeLockServiceServer ¶
type UnsafeLockServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLockServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LockServiceServer will result in compilation errors.