Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterLivemapperServiceServer(s grpc.ServiceRegistrar, srv LivemapperServiceServer)
- type CreateOrUpdateMarkerRequest
- func (*CreateOrUpdateMarkerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrUpdateMarkerRequest) GetMarker() *livemap.MarkerMarker
- func (*CreateOrUpdateMarkerRequest) ProtoMessage()
- func (x *CreateOrUpdateMarkerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateMarkerRequest) Reset()
- func (x *CreateOrUpdateMarkerRequest) String() string
- func (m *CreateOrUpdateMarkerRequest) Validate() error
- func (m *CreateOrUpdateMarkerRequest) ValidateAll() error
- type CreateOrUpdateMarkerRequestMultiError
- type CreateOrUpdateMarkerRequestValidationError
- func (e CreateOrUpdateMarkerRequestValidationError) Cause() error
- func (e CreateOrUpdateMarkerRequestValidationError) Error() string
- func (e CreateOrUpdateMarkerRequestValidationError) ErrorName() string
- func (e CreateOrUpdateMarkerRequestValidationError) Field() string
- func (e CreateOrUpdateMarkerRequestValidationError) Key() bool
- func (e CreateOrUpdateMarkerRequestValidationError) Reason() string
- type CreateOrUpdateMarkerResponse
- func (*CreateOrUpdateMarkerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrUpdateMarkerResponse) GetMarker() *livemap.MarkerMarker
- func (*CreateOrUpdateMarkerResponse) ProtoMessage()
- func (x *CreateOrUpdateMarkerResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateMarkerResponse) Reset()
- func (x *CreateOrUpdateMarkerResponse) String() string
- func (m *CreateOrUpdateMarkerResponse) Validate() error
- func (m *CreateOrUpdateMarkerResponse) ValidateAll() error
- type CreateOrUpdateMarkerResponseMultiError
- type CreateOrUpdateMarkerResponseValidationError
- func (e CreateOrUpdateMarkerResponseValidationError) Cause() error
- func (e CreateOrUpdateMarkerResponseValidationError) Error() string
- func (e CreateOrUpdateMarkerResponseValidationError) ErrorName() string
- func (e CreateOrUpdateMarkerResponseValidationError) Field() string
- func (e CreateOrUpdateMarkerResponseValidationError) Key() bool
- func (e CreateOrUpdateMarkerResponseValidationError) Reason() string
- type DeleteMarkerRequest
- func (*DeleteMarkerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMarkerRequest) GetId() uint64
- func (*DeleteMarkerRequest) ProtoMessage()
- func (x *DeleteMarkerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMarkerRequest) Reset()
- func (x *DeleteMarkerRequest) String() string
- func (m *DeleteMarkerRequest) Validate() error
- func (m *DeleteMarkerRequest) ValidateAll() error
- type DeleteMarkerRequestMultiError
- type DeleteMarkerRequestValidationError
- func (e DeleteMarkerRequestValidationError) Cause() error
- func (e DeleteMarkerRequestValidationError) Error() string
- func (e DeleteMarkerRequestValidationError) ErrorName() string
- func (e DeleteMarkerRequestValidationError) Field() string
- func (e DeleteMarkerRequestValidationError) Key() bool
- func (e DeleteMarkerRequestValidationError) Reason() string
- type DeleteMarkerResponse
- func (*DeleteMarkerResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteMarkerResponse) ProtoMessage()
- func (x *DeleteMarkerResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteMarkerResponse) Reset()
- func (x *DeleteMarkerResponse) String() string
- func (m *DeleteMarkerResponse) Validate() error
- func (m *DeleteMarkerResponse) ValidateAll() error
- type DeleteMarkerResponseMultiError
- type DeleteMarkerResponseValidationError
- func (e DeleteMarkerResponseValidationError) Cause() error
- func (e DeleteMarkerResponseValidationError) Error() string
- func (e DeleteMarkerResponseValidationError) ErrorName() string
- func (e DeleteMarkerResponseValidationError) Field() string
- func (e DeleteMarkerResponseValidationError) Key() bool
- func (e DeleteMarkerResponseValidationError) Reason() string
- type JobsList
- func (*JobsList) Descriptor() ([]byte, []int)deprecated
- func (x *JobsList) GetMarkers() []*users.Job
- func (x *JobsList) GetUsers() []*users.Job
- func (*JobsList) ProtoMessage()
- func (x *JobsList) ProtoReflect() protoreflect.Message
- func (x *JobsList) Reset()
- func (x *JobsList) String() string
- func (m *JobsList) Validate() error
- func (m *JobsList) ValidateAll() error
- type JobsListMultiError
- type JobsListValidationError
- type LivemapperServiceClient
- type LivemapperServiceServer
- type LivemapperService_StreamClient
- type LivemapperService_StreamServer
- type MarkerMarkersUpdates
- func (*MarkerMarkersUpdates) Descriptor() ([]byte, []int)deprecated
- func (x *MarkerMarkersUpdates) GetMarkers() []*livemap.MarkerMarker
- func (*MarkerMarkersUpdates) ProtoMessage()
- func (x *MarkerMarkersUpdates) ProtoReflect() protoreflect.Message
- func (x *MarkerMarkersUpdates) Reset()
- func (x *MarkerMarkersUpdates) String() string
- func (m *MarkerMarkersUpdates) Validate() error
- func (m *MarkerMarkersUpdates) ValidateAll() error
- type MarkerMarkersUpdatesMultiError
- type MarkerMarkersUpdatesValidationError
- func (e MarkerMarkersUpdatesValidationError) Cause() error
- func (e MarkerMarkersUpdatesValidationError) Error() string
- func (e MarkerMarkersUpdatesValidationError) ErrorName() string
- func (e MarkerMarkersUpdatesValidationError) Field() string
- func (e MarkerMarkersUpdatesValidationError) Key() bool
- func (e MarkerMarkersUpdatesValidationError) Reason() string
- type Params
- type Server
- func (s *Server) CreateOrUpdateMarker(ctx context.Context, req *CreateOrUpdateMarkerRequest) (*CreateOrUpdateMarkerResponse, error)
- func (s *Server) DeleteMarker(ctx context.Context, req *DeleteMarkerRequest) (*DeleteMarkerResponse, error)
- func (s *Server) RegisterServer(srv *grpc.Server)
- func (s *Server) Stream(req *StreamRequest, srv LivemapperService_StreamServer) error
- type StreamRequest
- func (*StreamRequest) Descriptor() ([]byte, []int)deprecated
- func (*StreamRequest) ProtoMessage()
- func (x *StreamRequest) ProtoReflect() protoreflect.Message
- func (x *StreamRequest) Reset()
- func (x *StreamRequest) String() string
- func (m *StreamRequest) Validate() error
- func (m *StreamRequest) ValidateAll() error
- type StreamRequestMultiError
- type StreamRequestValidationError
- func (e StreamRequestValidationError) Cause() error
- func (e StreamRequestValidationError) Error() string
- func (e StreamRequestValidationError) ErrorName() string
- func (e StreamRequestValidationError) Field() string
- func (e StreamRequestValidationError) Key() bool
- func (e StreamRequestValidationError) Reason() string
- type StreamResponse
- func (*StreamResponse) Descriptor() ([]byte, []int)deprecated
- func (m *StreamResponse) GetData() isStreamResponse_Data
- func (x *StreamResponse) GetJobs() *JobsList
- func (x *StreamResponse) GetMarkers() *MarkerMarkersUpdates
- func (x *StreamResponse) GetUsers() *UserMarkersUpdates
- func (*StreamResponse) ProtoMessage()
- func (x *StreamResponse) ProtoReflect() protoreflect.Message
- func (x *StreamResponse) Reset()
- func (x *StreamResponse) String() string
- func (m *StreamResponse) Validate() error
- func (m *StreamResponse) ValidateAll() error
- type StreamResponseMultiError
- type StreamResponseValidationError
- func (e StreamResponseValidationError) Cause() error
- func (e StreamResponseValidationError) Error() string
- func (e StreamResponseValidationError) ErrorName() string
- func (e StreamResponseValidationError) Field() string
- func (e StreamResponseValidationError) Key() bool
- func (e StreamResponseValidationError) Reason() string
- type StreamResponse_Jobs
- type StreamResponse_Markers
- type StreamResponse_Users
- type UnimplementedLivemapperServiceServer
- func (UnimplementedLivemapperServiceServer) CreateOrUpdateMarker(context.Context, *CreateOrUpdateMarkerRequest) (*CreateOrUpdateMarkerResponse, error)
- func (UnimplementedLivemapperServiceServer) DeleteMarker(context.Context, *DeleteMarkerRequest) (*DeleteMarkerResponse, error)
- func (UnimplementedLivemapperServiceServer) Stream(*StreamRequest, LivemapperService_StreamServer) error
- type UnsafeLivemapperServiceServer
- type UserMarkersUpdates
- func (*UserMarkersUpdates) Descriptor() ([]byte, []int)deprecated
- func (x *UserMarkersUpdates) GetPart() int32
- func (x *UserMarkersUpdates) GetUsers() []*livemap.UserMarker
- func (*UserMarkersUpdates) ProtoMessage()
- func (x *UserMarkersUpdates) ProtoReflect() protoreflect.Message
- func (x *UserMarkersUpdates) Reset()
- func (x *UserMarkersUpdates) String() string
- func (m *UserMarkersUpdates) Validate() error
- func (m *UserMarkersUpdates) ValidateAll() error
- type UserMarkersUpdatesMultiError
- type UserMarkersUpdatesValidationError
- func (e UserMarkersUpdatesValidationError) Cause() error
- func (e UserMarkersUpdatesValidationError) Error() string
- func (e UserMarkersUpdatesValidationError) ErrorName() string
- func (e UserMarkersUpdatesValidationError) Field() string
- func (e UserMarkersUpdatesValidationError) Key() bool
- func (e UserMarkersUpdatesValidationError) Reason() string
Constants ¶
const ( BaseSubject events.Subject = "livemap" MarkerUpdate events.Type = "marker_update" )
const ( LivemapperService_Stream_FullMethodName = "/services.livemapper.LivemapperService/Stream" LivemapperService_CreateOrUpdateMarker_FullMethodName = "/services.livemapper.LivemapperService/CreateOrUpdateMarker" LivemapperService_DeleteMarker_FullMethodName = "/services.livemapper.LivemapperService/DeleteMarker" )
Variables ¶
var ( ErrMarkerFailed = status.Error(codes.Internal, "errors.LivemapperService.ErrMarkerFailed") ErrMarkerDenied = status.Error(codes.PermissionDenied, "errors.LivemapperService.ErrMarkerDenied") )
var (
ErrStreamFailed = status.Error(codes.Internal, "errors.LivemapperService.ErrStreamFailed")
)
var File_services_livemapper_livemap_proto protoreflect.FileDescriptor
var LivemapperService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.livemapper.LivemapperService", HandlerType: (*LivemapperServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrUpdateMarker", Handler: _LivemapperService_CreateOrUpdateMarker_Handler, }, { MethodName: "DeleteMarker", Handler: _LivemapperService_DeleteMarker_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _LivemapperService_Stream_Handler, ServerStreams: true, }, }, Metadata: "services/livemapper/livemap.proto", }
LivemapperService_ServiceDesc is the grpc.ServiceDesc for LivemapperService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLivemapperServiceServer ¶
func RegisterLivemapperServiceServer(s grpc.ServiceRegistrar, srv LivemapperServiceServer)
Types ¶
type CreateOrUpdateMarkerRequest ¶ added in v0.8.1
type CreateOrUpdateMarkerRequest struct { Marker *livemap.MarkerMarker `protobuf:"bytes,1,opt,name=marker,proto3" json:"marker,omitempty"` // contains filtered or unexported fields }
func (*CreateOrUpdateMarkerRequest) Descriptor
deprecated
added in
v0.8.1
func (*CreateOrUpdateMarkerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrUpdateMarkerRequest.ProtoReflect.Descriptor instead.
func (*CreateOrUpdateMarkerRequest) GetMarker ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerRequest) GetMarker() *livemap.MarkerMarker
func (*CreateOrUpdateMarkerRequest) ProtoMessage ¶ added in v0.8.1
func (*CreateOrUpdateMarkerRequest) ProtoMessage()
func (*CreateOrUpdateMarkerRequest) ProtoReflect ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerRequest) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateMarkerRequest) Reset ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerRequest) Reset()
func (*CreateOrUpdateMarkerRequest) String ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerRequest) String() string
func (*CreateOrUpdateMarkerRequest) Validate ¶ added in v0.8.1
func (m *CreateOrUpdateMarkerRequest) Validate() error
Validate checks the field values on CreateOrUpdateMarkerRequest 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 (*CreateOrUpdateMarkerRequest) ValidateAll ¶ added in v0.8.1
func (m *CreateOrUpdateMarkerRequest) ValidateAll() error
ValidateAll checks the field values on CreateOrUpdateMarkerRequest 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 CreateOrUpdateMarkerRequestMultiError, or nil if none found.
type CreateOrUpdateMarkerRequestMultiError ¶ added in v0.8.1
type CreateOrUpdateMarkerRequestMultiError []error
CreateOrUpdateMarkerRequestMultiError is an error wrapping multiple validation errors returned by CreateOrUpdateMarkerRequest.ValidateAll() if the designated constraints aren't met.
func (CreateOrUpdateMarkerRequestMultiError) AllErrors ¶ added in v0.8.1
func (m CreateOrUpdateMarkerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateOrUpdateMarkerRequestMultiError) Error ¶ added in v0.8.1
func (m CreateOrUpdateMarkerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateOrUpdateMarkerRequestValidationError ¶ added in v0.8.1
type CreateOrUpdateMarkerRequestValidationError struct {
// contains filtered or unexported fields
}
CreateOrUpdateMarkerRequestValidationError is the validation error returned by CreateOrUpdateMarkerRequest.Validate if the designated constraints aren't met.
func (CreateOrUpdateMarkerRequestValidationError) Cause ¶ added in v0.8.1
func (e CreateOrUpdateMarkerRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateOrUpdateMarkerRequestValidationError) Error ¶ added in v0.8.1
func (e CreateOrUpdateMarkerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrUpdateMarkerRequestValidationError) ErrorName ¶ added in v0.8.1
func (e CreateOrUpdateMarkerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrUpdateMarkerRequestValidationError) Field ¶ added in v0.8.1
func (e CreateOrUpdateMarkerRequestValidationError) Field() string
Field function returns field value.
func (CreateOrUpdateMarkerRequestValidationError) Key ¶ added in v0.8.1
func (e CreateOrUpdateMarkerRequestValidationError) Key() bool
Key function returns key value.
func (CreateOrUpdateMarkerRequestValidationError) Reason ¶ added in v0.8.1
func (e CreateOrUpdateMarkerRequestValidationError) Reason() string
Reason function returns reason value.
type CreateOrUpdateMarkerResponse ¶ added in v0.8.1
type CreateOrUpdateMarkerResponse struct { Marker *livemap.MarkerMarker `protobuf:"bytes,1,opt,name=marker,proto3" json:"marker,omitempty"` // contains filtered or unexported fields }
func (*CreateOrUpdateMarkerResponse) Descriptor
deprecated
added in
v0.8.1
func (*CreateOrUpdateMarkerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrUpdateMarkerResponse.ProtoReflect.Descriptor instead.
func (*CreateOrUpdateMarkerResponse) GetMarker ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerResponse) GetMarker() *livemap.MarkerMarker
func (*CreateOrUpdateMarkerResponse) ProtoMessage ¶ added in v0.8.1
func (*CreateOrUpdateMarkerResponse) ProtoMessage()
func (*CreateOrUpdateMarkerResponse) ProtoReflect ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerResponse) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateMarkerResponse) Reset ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerResponse) Reset()
func (*CreateOrUpdateMarkerResponse) String ¶ added in v0.8.1
func (x *CreateOrUpdateMarkerResponse) String() string
func (*CreateOrUpdateMarkerResponse) Validate ¶ added in v0.8.1
func (m *CreateOrUpdateMarkerResponse) Validate() error
Validate checks the field values on CreateOrUpdateMarkerResponse 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 (*CreateOrUpdateMarkerResponse) ValidateAll ¶ added in v0.8.1
func (m *CreateOrUpdateMarkerResponse) ValidateAll() error
ValidateAll checks the field values on CreateOrUpdateMarkerResponse 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 CreateOrUpdateMarkerResponseMultiError, or nil if none found.
type CreateOrUpdateMarkerResponseMultiError ¶ added in v0.8.1
type CreateOrUpdateMarkerResponseMultiError []error
CreateOrUpdateMarkerResponseMultiError is an error wrapping multiple validation errors returned by CreateOrUpdateMarkerResponse.ValidateAll() if the designated constraints aren't met.
func (CreateOrUpdateMarkerResponseMultiError) AllErrors ¶ added in v0.8.1
func (m CreateOrUpdateMarkerResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateOrUpdateMarkerResponseMultiError) Error ¶ added in v0.8.1
func (m CreateOrUpdateMarkerResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateOrUpdateMarkerResponseValidationError ¶ added in v0.8.1
type CreateOrUpdateMarkerResponseValidationError struct {
// contains filtered or unexported fields
}
CreateOrUpdateMarkerResponseValidationError is the validation error returned by CreateOrUpdateMarkerResponse.Validate if the designated constraints aren't met.
func (CreateOrUpdateMarkerResponseValidationError) Cause ¶ added in v0.8.1
func (e CreateOrUpdateMarkerResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateOrUpdateMarkerResponseValidationError) Error ¶ added in v0.8.1
func (e CreateOrUpdateMarkerResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrUpdateMarkerResponseValidationError) ErrorName ¶ added in v0.8.1
func (e CreateOrUpdateMarkerResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrUpdateMarkerResponseValidationError) Field ¶ added in v0.8.1
func (e CreateOrUpdateMarkerResponseValidationError) Field() string
Field function returns field value.
func (CreateOrUpdateMarkerResponseValidationError) Key ¶ added in v0.8.1
func (e CreateOrUpdateMarkerResponseValidationError) Key() bool
Key function returns key value.
func (CreateOrUpdateMarkerResponseValidationError) Reason ¶ added in v0.8.1
func (e CreateOrUpdateMarkerResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteMarkerRequest ¶ added in v0.8.1
type DeleteMarkerRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMarkerRequest) Descriptor
deprecated
added in
v0.8.1
func (*DeleteMarkerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMarkerRequest.ProtoReflect.Descriptor instead.
func (*DeleteMarkerRequest) GetId ¶ added in v0.8.1
func (x *DeleteMarkerRequest) GetId() uint64
func (*DeleteMarkerRequest) ProtoMessage ¶ added in v0.8.1
func (*DeleteMarkerRequest) ProtoMessage()
func (*DeleteMarkerRequest) ProtoReflect ¶ added in v0.8.1
func (x *DeleteMarkerRequest) ProtoReflect() protoreflect.Message
func (*DeleteMarkerRequest) Reset ¶ added in v0.8.1
func (x *DeleteMarkerRequest) Reset()
func (*DeleteMarkerRequest) String ¶ added in v0.8.1
func (x *DeleteMarkerRequest) String() string
func (*DeleteMarkerRequest) Validate ¶ added in v0.8.1
func (m *DeleteMarkerRequest) Validate() error
Validate checks the field values on DeleteMarkerRequest 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 (*DeleteMarkerRequest) ValidateAll ¶ added in v0.8.1
func (m *DeleteMarkerRequest) ValidateAll() error
ValidateAll checks the field values on DeleteMarkerRequest 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 DeleteMarkerRequestMultiError, or nil if none found.
type DeleteMarkerRequestMultiError ¶ added in v0.8.1
type DeleteMarkerRequestMultiError []error
DeleteMarkerRequestMultiError is an error wrapping multiple validation errors returned by DeleteMarkerRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteMarkerRequestMultiError) AllErrors ¶ added in v0.8.1
func (m DeleteMarkerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMarkerRequestMultiError) Error ¶ added in v0.8.1
func (m DeleteMarkerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMarkerRequestValidationError ¶ added in v0.8.1
type DeleteMarkerRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteMarkerRequestValidationError is the validation error returned by DeleteMarkerRequest.Validate if the designated constraints aren't met.
func (DeleteMarkerRequestValidationError) Cause ¶ added in v0.8.1
func (e DeleteMarkerRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteMarkerRequestValidationError) Error ¶ added in v0.8.1
func (e DeleteMarkerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMarkerRequestValidationError) ErrorName ¶ added in v0.8.1
func (e DeleteMarkerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMarkerRequestValidationError) Field ¶ added in v0.8.1
func (e DeleteMarkerRequestValidationError) Field() string
Field function returns field value.
func (DeleteMarkerRequestValidationError) Key ¶ added in v0.8.1
func (e DeleteMarkerRequestValidationError) Key() bool
Key function returns key value.
func (DeleteMarkerRequestValidationError) Reason ¶ added in v0.8.1
func (e DeleteMarkerRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMarkerResponse ¶ added in v0.8.1
type DeleteMarkerResponse struct {
// contains filtered or unexported fields
}
func (*DeleteMarkerResponse) Descriptor
deprecated
added in
v0.8.1
func (*DeleteMarkerResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMarkerResponse.ProtoReflect.Descriptor instead.
func (*DeleteMarkerResponse) ProtoMessage ¶ added in v0.8.1
func (*DeleteMarkerResponse) ProtoMessage()
func (*DeleteMarkerResponse) ProtoReflect ¶ added in v0.8.1
func (x *DeleteMarkerResponse) ProtoReflect() protoreflect.Message
func (*DeleteMarkerResponse) Reset ¶ added in v0.8.1
func (x *DeleteMarkerResponse) Reset()
func (*DeleteMarkerResponse) String ¶ added in v0.8.1
func (x *DeleteMarkerResponse) String() string
func (*DeleteMarkerResponse) Validate ¶ added in v0.8.1
func (m *DeleteMarkerResponse) Validate() error
Validate checks the field values on DeleteMarkerResponse 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 (*DeleteMarkerResponse) ValidateAll ¶ added in v0.8.1
func (m *DeleteMarkerResponse) ValidateAll() error
ValidateAll checks the field values on DeleteMarkerResponse 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 DeleteMarkerResponseMultiError, or nil if none found.
type DeleteMarkerResponseMultiError ¶ added in v0.8.1
type DeleteMarkerResponseMultiError []error
DeleteMarkerResponseMultiError is an error wrapping multiple validation errors returned by DeleteMarkerResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteMarkerResponseMultiError) AllErrors ¶ added in v0.8.1
func (m DeleteMarkerResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMarkerResponseMultiError) Error ¶ added in v0.8.1
func (m DeleteMarkerResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMarkerResponseValidationError ¶ added in v0.8.1
type DeleteMarkerResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteMarkerResponseValidationError is the validation error returned by DeleteMarkerResponse.Validate if the designated constraints aren't met.
func (DeleteMarkerResponseValidationError) Cause ¶ added in v0.8.1
func (e DeleteMarkerResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteMarkerResponseValidationError) Error ¶ added in v0.8.1
func (e DeleteMarkerResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMarkerResponseValidationError) ErrorName ¶ added in v0.8.1
func (e DeleteMarkerResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMarkerResponseValidationError) Field ¶ added in v0.8.1
func (e DeleteMarkerResponseValidationError) Field() string
Field function returns field value.
func (DeleteMarkerResponseValidationError) Key ¶ added in v0.8.1
func (e DeleteMarkerResponseValidationError) Key() bool
Key function returns key value.
func (DeleteMarkerResponseValidationError) Reason ¶ added in v0.8.1
func (e DeleteMarkerResponseValidationError) Reason() string
Reason function returns reason value.
type JobsList ¶ added in v0.8.20
type JobsList struct { Users []*users.Job `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Markers []*users.Job `protobuf:"bytes,2,rep,name=markers,proto3" json:"markers,omitempty"` // contains filtered or unexported fields }
func (*JobsList) Descriptor
deprecated
added in
v0.8.20
func (*JobsList) GetMarkers ¶ added in v0.8.20
func (*JobsList) ProtoMessage ¶ added in v0.8.20
func (*JobsList) ProtoMessage()
func (*JobsList) ProtoReflect ¶ added in v0.8.20
func (x *JobsList) ProtoReflect() protoreflect.Message
func (*JobsList) Validate ¶ added in v0.8.20
Validate checks the field values on JobsList 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 (*JobsList) ValidateAll ¶ added in v0.8.20
ValidateAll checks the field values on JobsList 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 JobsListMultiError, or nil if none found.
type JobsListMultiError ¶ added in v0.8.20
type JobsListMultiError []error
JobsListMultiError is an error wrapping multiple validation errors returned by JobsList.ValidateAll() if the designated constraints aren't met.
func (JobsListMultiError) AllErrors ¶ added in v0.8.20
func (m JobsListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobsListMultiError) Error ¶ added in v0.8.20
func (m JobsListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobsListValidationError ¶ added in v0.8.20
type JobsListValidationError struct {
// contains filtered or unexported fields
}
JobsListValidationError is the validation error returned by JobsList.Validate if the designated constraints aren't met.
func (JobsListValidationError) Cause ¶ added in v0.8.20
func (e JobsListValidationError) Cause() error
Cause function returns cause value.
func (JobsListValidationError) Error ¶ added in v0.8.20
func (e JobsListValidationError) Error() string
Error satisfies the builtin error interface
func (JobsListValidationError) ErrorName ¶ added in v0.8.20
func (e JobsListValidationError) ErrorName() string
ErrorName returns error name.
func (JobsListValidationError) Field ¶ added in v0.8.20
func (e JobsListValidationError) Field() string
Field function returns field value.
func (JobsListValidationError) Key ¶ added in v0.8.20
func (e JobsListValidationError) Key() bool
Key function returns key value.
func (JobsListValidationError) Reason ¶ added in v0.8.20
func (e JobsListValidationError) Reason() string
Reason function returns reason value.
type LivemapperServiceClient ¶
type LivemapperServiceClient interface { // @perm: Attrs=Markers/JobList|Players/JobGradeList Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (LivemapperService_StreamClient, error) // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} CreateOrUpdateMarker(ctx context.Context, in *CreateOrUpdateMarkerRequest, opts ...grpc.CallOption) (*CreateOrUpdateMarkerResponse, error) // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} DeleteMarker(ctx context.Context, in *DeleteMarkerRequest, opts ...grpc.CallOption) (*DeleteMarkerResponse, error) }
LivemapperServiceClient is the client API for LivemapperService 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 NewLivemapperServiceClient ¶
func NewLivemapperServiceClient(cc grpc.ClientConnInterface) LivemapperServiceClient
func NewTestLivemapperServiceClient ¶
func NewTestLivemapperServiceClient(srv LivemapperServiceServer) (LivemapperServiceClient, context.Context, context.CancelFunc)
type LivemapperServiceServer ¶
type LivemapperServiceServer interface { // @perm: Attrs=Markers/JobList|Players/JobGradeList Stream(*StreamRequest, LivemapperService_StreamServer) error // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} CreateOrUpdateMarker(context.Context, *CreateOrUpdateMarkerRequest) (*CreateOrUpdateMarkerResponse, error) // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} DeleteMarker(context.Context, *DeleteMarkerRequest) (*DeleteMarkerResponse, error) // contains filtered or unexported methods }
LivemapperServiceServer is the server API for LivemapperService service. All implementations must embed UnimplementedLivemapperServiceServer for forward compatibility
type LivemapperService_StreamClient ¶
type LivemapperService_StreamClient interface { Recv() (*StreamResponse, error) grpc.ClientStream }
type LivemapperService_StreamServer ¶
type LivemapperService_StreamServer interface { Send(*StreamResponse) error grpc.ServerStream }
type MarkerMarkersUpdates ¶ added in v0.8.20
type MarkerMarkersUpdates struct { Markers []*livemap.MarkerMarker `protobuf:"bytes,1,rep,name=markers,proto3" json:"markers,omitempty"` // contains filtered or unexported fields }
func (*MarkerMarkersUpdates) Descriptor
deprecated
added in
v0.8.20
func (*MarkerMarkersUpdates) Descriptor() ([]byte, []int)
Deprecated: Use MarkerMarkersUpdates.ProtoReflect.Descriptor instead.
func (*MarkerMarkersUpdates) GetMarkers ¶ added in v0.8.20
func (x *MarkerMarkersUpdates) GetMarkers() []*livemap.MarkerMarker
func (*MarkerMarkersUpdates) ProtoMessage ¶ added in v0.8.20
func (*MarkerMarkersUpdates) ProtoMessage()
func (*MarkerMarkersUpdates) ProtoReflect ¶ added in v0.8.20
func (x *MarkerMarkersUpdates) ProtoReflect() protoreflect.Message
func (*MarkerMarkersUpdates) Reset ¶ added in v0.8.20
func (x *MarkerMarkersUpdates) Reset()
func (*MarkerMarkersUpdates) String ¶ added in v0.8.20
func (x *MarkerMarkersUpdates) String() string
func (*MarkerMarkersUpdates) Validate ¶ added in v0.8.20
func (m *MarkerMarkersUpdates) Validate() error
Validate checks the field values on MarkerMarkersUpdates 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 (*MarkerMarkersUpdates) ValidateAll ¶ added in v0.8.20
func (m *MarkerMarkersUpdates) ValidateAll() error
ValidateAll checks the field values on MarkerMarkersUpdates 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 MarkerMarkersUpdatesMultiError, or nil if none found.
type MarkerMarkersUpdatesMultiError ¶ added in v0.8.20
type MarkerMarkersUpdatesMultiError []error
MarkerMarkersUpdatesMultiError is an error wrapping multiple validation errors returned by MarkerMarkersUpdates.ValidateAll() if the designated constraints aren't met.
func (MarkerMarkersUpdatesMultiError) AllErrors ¶ added in v0.8.20
func (m MarkerMarkersUpdatesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MarkerMarkersUpdatesMultiError) Error ¶ added in v0.8.20
func (m MarkerMarkersUpdatesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MarkerMarkersUpdatesValidationError ¶ added in v0.8.20
type MarkerMarkersUpdatesValidationError struct {
// contains filtered or unexported fields
}
MarkerMarkersUpdatesValidationError is the validation error returned by MarkerMarkersUpdates.Validate if the designated constraints aren't met.
func (MarkerMarkersUpdatesValidationError) Cause ¶ added in v0.8.20
func (e MarkerMarkersUpdatesValidationError) Cause() error
Cause function returns cause value.
func (MarkerMarkersUpdatesValidationError) Error ¶ added in v0.8.20
func (e MarkerMarkersUpdatesValidationError) Error() string
Error satisfies the builtin error interface
func (MarkerMarkersUpdatesValidationError) ErrorName ¶ added in v0.8.20
func (e MarkerMarkersUpdatesValidationError) ErrorName() string
ErrorName returns error name.
func (MarkerMarkersUpdatesValidationError) Field ¶ added in v0.8.20
func (e MarkerMarkersUpdatesValidationError) Field() string
Field function returns field value.
func (MarkerMarkersUpdatesValidationError) Key ¶ added in v0.8.20
func (e MarkerMarkersUpdatesValidationError) Key() bool
Key function returns key value.
func (MarkerMarkersUpdatesValidationError) Reason ¶ added in v0.8.20
func (e MarkerMarkersUpdatesValidationError) Reason() string
Reason function returns reason value.
type Server ¶
type Server struct { LivemapperServiceServer // contains filtered or unexported fields }
func (*Server) CreateOrUpdateMarker ¶ added in v0.8.1
func (s *Server) CreateOrUpdateMarker(ctx context.Context, req *CreateOrUpdateMarkerRequest) (*CreateOrUpdateMarkerResponse, error)
func (*Server) DeleteMarker ¶ added in v0.8.1
func (s *Server) DeleteMarker(ctx context.Context, req *DeleteMarkerRequest) (*DeleteMarkerResponse, error)
func (*Server) RegisterServer ¶ added in v0.8.0
func (*Server) Stream ¶
func (s *Server) Stream(req *StreamRequest, srv LivemapperService_StreamServer) error
type StreamRequest ¶
type StreamRequest struct {
// contains filtered or unexported fields
}
func (*StreamRequest) Descriptor
deprecated
func (*StreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.
func (*StreamRequest) ProtoMessage ¶
func (*StreamRequest) ProtoMessage()
func (*StreamRequest) ProtoReflect ¶
func (x *StreamRequest) ProtoReflect() protoreflect.Message
func (*StreamRequest) Reset ¶
func (x *StreamRequest) Reset()
func (*StreamRequest) String ¶
func (x *StreamRequest) String() string
func (*StreamRequest) Validate ¶
func (m *StreamRequest) Validate() error
Validate checks the field values on StreamRequest 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 (*StreamRequest) ValidateAll ¶
func (m *StreamRequest) ValidateAll() error
ValidateAll checks the field values on StreamRequest 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 StreamRequestMultiError, or nil if none found.
type StreamRequestMultiError ¶
type StreamRequestMultiError []error
StreamRequestMultiError is an error wrapping multiple validation errors returned by StreamRequest.ValidateAll() if the designated constraints aren't met.
func (StreamRequestMultiError) AllErrors ¶
func (m StreamRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StreamRequestMultiError) Error ¶
func (m StreamRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StreamRequestValidationError ¶
type StreamRequestValidationError struct {
// contains filtered or unexported fields
}
StreamRequestValidationError is the validation error returned by StreamRequest.Validate if the designated constraints aren't met.
func (StreamRequestValidationError) Cause ¶
func (e StreamRequestValidationError) Cause() error
Cause function returns cause value.
func (StreamRequestValidationError) Error ¶
func (e StreamRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StreamRequestValidationError) ErrorName ¶
func (e StreamRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StreamRequestValidationError) Field ¶
func (e StreamRequestValidationError) Field() string
Field function returns field value.
func (StreamRequestValidationError) Key ¶
func (e StreamRequestValidationError) Key() bool
Key function returns key value.
func (StreamRequestValidationError) Reason ¶
func (e StreamRequestValidationError) Reason() string
Reason function returns reason value.
type StreamResponse ¶
type StreamResponse struct { // Types that are assignable to Data: // // *StreamResponse_Jobs // *StreamResponse_Markers // *StreamResponse_Users Data isStreamResponse_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*StreamResponse) Descriptor
deprecated
func (*StreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead.
func (*StreamResponse) GetData ¶ added in v0.8.20
func (m *StreamResponse) GetData() isStreamResponse_Data
func (*StreamResponse) GetJobs ¶ added in v0.8.20
func (x *StreamResponse) GetJobs() *JobsList
func (*StreamResponse) GetMarkers ¶ added in v0.8.1
func (x *StreamResponse) GetMarkers() *MarkerMarkersUpdates
func (*StreamResponse) GetUsers ¶
func (x *StreamResponse) GetUsers() *UserMarkersUpdates
func (*StreamResponse) ProtoMessage ¶
func (*StreamResponse) ProtoMessage()
func (*StreamResponse) ProtoReflect ¶
func (x *StreamResponse) ProtoReflect() protoreflect.Message
func (*StreamResponse) Reset ¶
func (x *StreamResponse) Reset()
func (*StreamResponse) String ¶
func (x *StreamResponse) String() string
func (*StreamResponse) Validate ¶
func (m *StreamResponse) Validate() error
Validate checks the field values on StreamResponse 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 (*StreamResponse) ValidateAll ¶
func (m *StreamResponse) ValidateAll() error
ValidateAll checks the field values on StreamResponse 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 StreamResponseMultiError, or nil if none found.
type StreamResponseMultiError ¶
type StreamResponseMultiError []error
StreamResponseMultiError is an error wrapping multiple validation errors returned by StreamResponse.ValidateAll() if the designated constraints aren't met.
func (StreamResponseMultiError) AllErrors ¶
func (m StreamResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StreamResponseMultiError) Error ¶
func (m StreamResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StreamResponseValidationError ¶
type StreamResponseValidationError struct {
// contains filtered or unexported fields
}
StreamResponseValidationError is the validation error returned by StreamResponse.Validate if the designated constraints aren't met.
func (StreamResponseValidationError) Cause ¶
func (e StreamResponseValidationError) Cause() error
Cause function returns cause value.
func (StreamResponseValidationError) Error ¶
func (e StreamResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StreamResponseValidationError) ErrorName ¶
func (e StreamResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StreamResponseValidationError) Field ¶
func (e StreamResponseValidationError) Field() string
Field function returns field value.
func (StreamResponseValidationError) Key ¶
func (e StreamResponseValidationError) Key() bool
Key function returns key value.
func (StreamResponseValidationError) Reason ¶
func (e StreamResponseValidationError) Reason() string
Reason function returns reason value.
type StreamResponse_Jobs ¶ added in v0.8.20
type StreamResponse_Jobs struct {
Jobs *JobsList `protobuf:"bytes,1,opt,name=jobs,proto3,oneof"`
}
type StreamResponse_Markers ¶ added in v0.8.20
type StreamResponse_Markers struct {
Markers *MarkerMarkersUpdates `protobuf:"bytes,2,opt,name=markers,proto3,oneof"`
}
type StreamResponse_Users ¶ added in v0.8.20
type StreamResponse_Users struct {
Users *UserMarkersUpdates `protobuf:"bytes,3,opt,name=users,proto3,oneof"`
}
type UnimplementedLivemapperServiceServer ¶
type UnimplementedLivemapperServiceServer struct { }
UnimplementedLivemapperServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLivemapperServiceServer) CreateOrUpdateMarker ¶ added in v0.8.1
func (UnimplementedLivemapperServiceServer) CreateOrUpdateMarker(context.Context, *CreateOrUpdateMarkerRequest) (*CreateOrUpdateMarkerResponse, error)
func (UnimplementedLivemapperServiceServer) DeleteMarker ¶ added in v0.8.1
func (UnimplementedLivemapperServiceServer) DeleteMarker(context.Context, *DeleteMarkerRequest) (*DeleteMarkerResponse, error)
type UnsafeLivemapperServiceServer ¶
type UnsafeLivemapperServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLivemapperServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LivemapperServiceServer will result in compilation errors.
type UserMarkersUpdates ¶ added in v0.8.20
type UserMarkersUpdates struct { Users []*livemap.UserMarker `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Part int32 `protobuf:"varint,2,opt,name=part,proto3" json:"part,omitempty"` // contains filtered or unexported fields }
func (*UserMarkersUpdates) Descriptor
deprecated
added in
v0.8.20
func (*UserMarkersUpdates) Descriptor() ([]byte, []int)
Deprecated: Use UserMarkersUpdates.ProtoReflect.Descriptor instead.
func (*UserMarkersUpdates) GetPart ¶ added in v0.8.20
func (x *UserMarkersUpdates) GetPart() int32
func (*UserMarkersUpdates) GetUsers ¶ added in v0.8.20
func (x *UserMarkersUpdates) GetUsers() []*livemap.UserMarker
func (*UserMarkersUpdates) ProtoMessage ¶ added in v0.8.20
func (*UserMarkersUpdates) ProtoMessage()
func (*UserMarkersUpdates) ProtoReflect ¶ added in v0.8.20
func (x *UserMarkersUpdates) ProtoReflect() protoreflect.Message
func (*UserMarkersUpdates) Reset ¶ added in v0.8.20
func (x *UserMarkersUpdates) Reset()
func (*UserMarkersUpdates) String ¶ added in v0.8.20
func (x *UserMarkersUpdates) String() string
func (*UserMarkersUpdates) Validate ¶ added in v0.8.20
func (m *UserMarkersUpdates) Validate() error
Validate checks the field values on UserMarkersUpdates 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 (*UserMarkersUpdates) ValidateAll ¶ added in v0.8.20
func (m *UserMarkersUpdates) ValidateAll() error
ValidateAll checks the field values on UserMarkersUpdates 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 UserMarkersUpdatesMultiError, or nil if none found.
type UserMarkersUpdatesMultiError ¶ added in v0.8.20
type UserMarkersUpdatesMultiError []error
UserMarkersUpdatesMultiError is an error wrapping multiple validation errors returned by UserMarkersUpdates.ValidateAll() if the designated constraints aren't met.
func (UserMarkersUpdatesMultiError) AllErrors ¶ added in v0.8.20
func (m UserMarkersUpdatesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMarkersUpdatesMultiError) Error ¶ added in v0.8.20
func (m UserMarkersUpdatesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserMarkersUpdatesValidationError ¶ added in v0.8.20
type UserMarkersUpdatesValidationError struct {
// contains filtered or unexported fields
}
UserMarkersUpdatesValidationError is the validation error returned by UserMarkersUpdates.Validate if the designated constraints aren't met.
func (UserMarkersUpdatesValidationError) Cause ¶ added in v0.8.20
func (e UserMarkersUpdatesValidationError) Cause() error
Cause function returns cause value.
func (UserMarkersUpdatesValidationError) Error ¶ added in v0.8.20
func (e UserMarkersUpdatesValidationError) Error() string
Error satisfies the builtin error interface
func (UserMarkersUpdatesValidationError) ErrorName ¶ added in v0.8.20
func (e UserMarkersUpdatesValidationError) ErrorName() string
ErrorName returns error name.
func (UserMarkersUpdatesValidationError) Field ¶ added in v0.8.20
func (e UserMarkersUpdatesValidationError) Field() string
Field function returns field value.
func (UserMarkersUpdatesValidationError) Key ¶ added in v0.8.20
func (e UserMarkersUpdatesValidationError) Key() bool
Key function returns key value.
func (UserMarkersUpdatesValidationError) Reason ¶ added in v0.8.20
func (e UserMarkersUpdatesValidationError) Reason() string
Reason function returns reason value.