v1alpha1

package
v0.0.0-...-d33d768 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package v1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
var File_proto_lock_v1alpha1_lock_proto protoreflect.FileDescriptor
View Source
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.

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.

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

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

Cause function returns cause value.

func (CreateLockRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateLockRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateLockRequestValidationError) Field

Field function returns field value.

func (CreateLockRequestValidationError) Key

Key function returns key value.

func (CreateLockRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateLockResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateLockResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateLockResponseValidationError) Field

Field function returns field value.

func (CreateLockResponseValidationError) Key

Key function returns key value.

func (CreateLockResponseValidationError) Reason

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

Cause function returns cause value.

func (GetLockRequestValidationError) Error

Error satisfies the builtin error interface

func (GetLockRequestValidationError) ErrorName

func (e GetLockRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetLockRequestValidationError) Field

Field function returns field value.

func (GetLockRequestValidationError) Key

Key function returns key value.

func (GetLockRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetLockResponseValidationError) Error

Error satisfies the builtin error interface

func (GetLockResponseValidationError) ErrorName

func (e GetLockResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetLockResponseValidationError) Field

Field function returns field value.

func (GetLockResponseValidationError) Key

Key function returns key value.

func (GetLockResponseValidationError) Reason

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

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

Cause function returns cause value.

func (ListLocksRequestValidationError) Error

Error satisfies the builtin error interface

func (ListLocksRequestValidationError) ErrorName

ErrorName returns error name.

func (ListLocksRequestValidationError) Field

Field function returns field value.

func (ListLocksRequestValidationError) Key

Key function returns key value.

func (ListLocksRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListLocksResponseValidationError) Error

Error satisfies the builtin error interface

func (ListLocksResponseValidationError) ErrorName

ErrorName returns error name.

func (ListLocksResponseValidationError) Field

Field function returns field value.

func (ListLocksResponseValidationError) Key

Key function returns key value.

func (ListLocksResponseValidationError) Reason

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

Deprecated: Use Lock.ProtoReflect.Descriptor instead.

func (*Lock) GetCreatedAt

func (x *Lock) GetCreatedAt() *timestamppb.Timestamp

func (*Lock) GetId

func (x *Lock) GetId() string

func (*Lock) GetService

func (x *Lock) GetService() string

func (*Lock) GetWho

func (x *Lock) GetWho() string

func (*Lock) ProtoMessage

func (*Lock) ProtoMessage()

func (*Lock) ProtoReflect

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

func (*Lock) Reset

func (x *Lock) Reset()

func (*Lock) String

func (x *Lock) String() string

func (*Lock) Validate

func (m *Lock) Validate() error

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

func (m *Lock) ValidateAll() error

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.

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

Cause function returns cause value.

func (UnLockRequestValidationError) Error

Error satisfies the builtin error interface

func (UnLockRequestValidationError) ErrorName

func (e UnLockRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UnLockRequestValidationError) Field

Field function returns field value.

func (UnLockRequestValidationError) Key

Key function returns key value.

func (UnLockRequestValidationError) Reason

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

Cause function returns cause value.

func (UnLockResponseValidationError) Error

Error satisfies the builtin error interface

func (UnLockResponseValidationError) ErrorName

func (e UnLockResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UnLockResponseValidationError) Field

Field function returns field value.

func (UnLockResponseValidationError) Key

Key function returns key value.

func (UnLockResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedLockServiceServer

type UnimplementedLockServiceServer struct {
}

UnimplementedLockServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLockServiceServer) CreateLock

func (UnimplementedLockServiceServer) GetLock

func (UnimplementedLockServiceServer) ListLocks

func (UnimplementedLockServiceServer) UnLock

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.

Jump to

Keyboard shortcuts

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