Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterNotificationQueryServiceServer(s grpc.ServiceRegistrar, srv NotificationQueryServiceServer)
- func RegisterNotificationServiceServer(s grpc.ServiceRegistrar, srv NotificationServiceServer)
- type AsyncBatchSendRequest
- func (*AsyncBatchSendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncBatchSendRequest) GetNotifications() []*Notification
- func (*AsyncBatchSendRequest) ProtoMessage()
- func (x *AsyncBatchSendRequest) ProtoReflect() protoreflect.Message
- func (x *AsyncBatchSendRequest) Reset()
- func (x *AsyncBatchSendRequest) String() string
- func (m *AsyncBatchSendRequest) Validate() error
- func (m *AsyncBatchSendRequest) ValidateAll() error
- type AsyncBatchSendRequestMultiError
- type AsyncBatchSendRequestValidationError
- func (e AsyncBatchSendRequestValidationError) Cause() error
- func (e AsyncBatchSendRequestValidationError) Error() string
- func (e AsyncBatchSendRequestValidationError) ErrorName() string
- func (e AsyncBatchSendRequestValidationError) Field() string
- func (e AsyncBatchSendRequestValidationError) Key() bool
- func (e AsyncBatchSendRequestValidationError) Reason() string
- type AsyncBatchSendResponse
- func (*AsyncBatchSendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncBatchSendResponse) GetNotificationIds() []uint64
- func (*AsyncBatchSendResponse) ProtoMessage()
- func (x *AsyncBatchSendResponse) ProtoReflect() protoreflect.Message
- func (x *AsyncBatchSendResponse) Reset()
- func (x *AsyncBatchSendResponse) String() string
- func (m *AsyncBatchSendResponse) Validate() error
- func (m *AsyncBatchSendResponse) ValidateAll() error
- type AsyncBatchSendResponseMultiError
- type AsyncBatchSendResponseValidationError
- func (e AsyncBatchSendResponseValidationError) Cause() error
- func (e AsyncBatchSendResponseValidationError) Error() string
- func (e AsyncBatchSendResponseValidationError) ErrorName() string
- func (e AsyncBatchSendResponseValidationError) Field() string
- func (e AsyncBatchSendResponseValidationError) Key() bool
- func (e AsyncBatchSendResponseValidationError) Reason() string
- type AsyncSendRequest
- func (*AsyncSendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncSendRequest) GetNotification() *Notification
- func (*AsyncSendRequest) ProtoMessage()
- func (x *AsyncSendRequest) ProtoReflect() protoreflect.Message
- func (x *AsyncSendRequest) Reset()
- func (x *AsyncSendRequest) String() string
- func (m *AsyncSendRequest) Validate() error
- func (m *AsyncSendRequest) ValidateAll() error
- type AsyncSendRequestMultiError
- type AsyncSendRequestValidationError
- func (e AsyncSendRequestValidationError) Cause() error
- func (e AsyncSendRequestValidationError) Error() string
- func (e AsyncSendRequestValidationError) ErrorName() string
- func (e AsyncSendRequestValidationError) Field() string
- func (e AsyncSendRequestValidationError) Key() bool
- func (e AsyncSendRequestValidationError) Reason() string
- type AsyncSendResponse
- func (*AsyncSendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncSendResponse) GetResult() *SendResult
- func (*AsyncSendResponse) ProtoMessage()
- func (x *AsyncSendResponse) ProtoReflect() protoreflect.Message
- func (x *AsyncSendResponse) Reset()
- func (x *AsyncSendResponse) String() string
- func (m *AsyncSendResponse) Validate() error
- func (m *AsyncSendResponse) ValidateAll() error
- type AsyncSendResponseMultiError
- type AsyncSendResponseValidationError
- func (e AsyncSendResponseValidationError) Cause() error
- func (e AsyncSendResponseValidationError) Error() string
- func (e AsyncSendResponseValidationError) ErrorName() string
- func (e AsyncSendResponseValidationError) Field() string
- func (e AsyncSendResponseValidationError) Key() bool
- func (e AsyncSendResponseValidationError) Reason() string
- type BatchRequest
- func (*BatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchRequest) GetKeys() []string
- func (*BatchRequest) ProtoMessage()
- func (x *BatchRequest) ProtoReflect() protoreflect.Message
- func (x *BatchRequest) Reset()
- func (x *BatchRequest) String() string
- func (m *BatchRequest) Validate() error
- func (m *BatchRequest) ValidateAll() error
- type BatchRequestMultiError
- type BatchRequestValidationError
- func (e BatchRequestValidationError) Cause() error
- func (e BatchRequestValidationError) Error() string
- func (e BatchRequestValidationError) ErrorName() string
- func (e BatchRequestValidationError) Field() string
- func (e BatchRequestValidationError) Key() bool
- func (e BatchRequestValidationError) Reason() string
- type BatchResponse
- func (*BatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchResponse) GetResults() []*SendResponse
- func (*BatchResponse) ProtoMessage()
- func (x *BatchResponse) ProtoReflect() protoreflect.Message
- func (x *BatchResponse) Reset()
- func (x *BatchResponse) String() string
- func (m *BatchResponse) Validate() error
- func (m *BatchResponse) ValidateAll() error
- type BatchResponseMultiError
- type BatchResponseValidationError
- func (e BatchResponseValidationError) Cause() error
- func (e BatchResponseValidationError) Error() string
- func (e BatchResponseValidationError) ErrorName() string
- func (e BatchResponseValidationError) Field() string
- func (e BatchResponseValidationError) Key() bool
- func (e BatchResponseValidationError) Reason() string
- type BatchSendRequest
- func (*BatchSendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchSendRequest) GetNotifications() []*Notification
- func (*BatchSendRequest) ProtoMessage()
- func (x *BatchSendRequest) ProtoReflect() protoreflect.Message
- func (x *BatchSendRequest) Reset()
- func (x *BatchSendRequest) String() string
- func (m *BatchSendRequest) Validate() error
- func (m *BatchSendRequest) ValidateAll() error
- type BatchSendRequestMultiError
- type BatchSendRequestValidationError
- func (e BatchSendRequestValidationError) Cause() error
- func (e BatchSendRequestValidationError) Error() string
- func (e BatchSendRequestValidationError) ErrorName() string
- func (e BatchSendRequestValidationError) Field() string
- func (e BatchSendRequestValidationError) Key() bool
- func (e BatchSendRequestValidationError) Reason() string
- type BatchSendResponse
- func (*BatchSendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchSendResponse) GetResults() []*SendResult
- func (x *BatchSendResponse) GetSuccessCnt() int32
- func (x *BatchSendResponse) GetTotalCnt() int32
- func (*BatchSendResponse) ProtoMessage()
- func (x *BatchSendResponse) ProtoReflect() protoreflect.Message
- func (x *BatchSendResponse) Reset()
- func (x *BatchSendResponse) String() string
- func (m *BatchSendResponse) Validate() error
- func (m *BatchSendResponse) ValidateAll() error
- type BatchSendResponseMultiError
- type BatchSendResponseValidationError
- func (e BatchSendResponseValidationError) Cause() error
- func (e BatchSendResponseValidationError) Error() string
- func (e BatchSendResponseValidationError) ErrorName() string
- func (e BatchSendResponseValidationError) Field() string
- func (e BatchSendResponseValidationError) Key() bool
- func (e BatchSendResponseValidationError) Reason() string
- type Channel
- type DeadlineStrategy
- func (*DeadlineStrategy) Descriptor() ([]byte, []int)deprecated
- func (x *DeadlineStrategy) GetDeadline() *timestamppb.Timestamp
- func (*DeadlineStrategy) ProtoMessage()
- func (x *DeadlineStrategy) ProtoReflect() protoreflect.Message
- func (x *DeadlineStrategy) Reset()
- func (x *DeadlineStrategy) String() string
- func (m *DeadlineStrategy) Validate() error
- func (m *DeadlineStrategy) ValidateAll() error
- type DeadlineStrategyMultiError
- type DeadlineStrategyValidationError
- func (e DeadlineStrategyValidationError) Cause() error
- func (e DeadlineStrategyValidationError) Error() string
- func (e DeadlineStrategyValidationError) ErrorName() string
- func (e DeadlineStrategyValidationError) Field() string
- func (e DeadlineStrategyValidationError) Key() bool
- func (e DeadlineStrategyValidationError) Reason() string
- type DelayedStrategy
- func (*DelayedStrategy) Descriptor() ([]byte, []int)deprecated
- func (x *DelayedStrategy) GetDelaySeconds() int64
- func (*DelayedStrategy) ProtoMessage()
- func (x *DelayedStrategy) ProtoReflect() protoreflect.Message
- func (x *DelayedStrategy) Reset()
- func (x *DelayedStrategy) String() string
- func (m *DelayedStrategy) Validate() error
- func (m *DelayedStrategy) ValidateAll() error
- type DelayedStrategyMultiError
- type DelayedStrategyValidationError
- func (e DelayedStrategyValidationError) Cause() error
- func (e DelayedStrategyValidationError) Error() string
- func (e DelayedStrategyValidationError) ErrorName() string
- func (e DelayedStrategyValidationError) Field() string
- func (e DelayedStrategyValidationError) Key() bool
- func (e DelayedStrategyValidationError) Reason() string
- type ErrCode
- type ImmediatelyStrategy
- func (*ImmediatelyStrategy) Descriptor() ([]byte, []int)deprecated
- func (*ImmediatelyStrategy) ProtoMessage()
- func (x *ImmediatelyStrategy) ProtoReflect() protoreflect.Message
- func (x *ImmediatelyStrategy) Reset()
- func (x *ImmediatelyStrategy) String() string
- func (m *ImmediatelyStrategy) Validate() error
- func (m *ImmediatelyStrategy) ValidateAll() error
- type ImmediatelyStrategyMultiError
- type ImmediatelyStrategyValidationError
- func (e ImmediatelyStrategyValidationError) Cause() error
- func (e ImmediatelyStrategyValidationError) Error() string
- func (e ImmediatelyStrategyValidationError) ErrorName() string
- func (e ImmediatelyStrategyValidationError) Field() string
- func (e ImmediatelyStrategyValidationError) Key() bool
- func (e ImmediatelyStrategyValidationError) Reason() string
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetBizKey() string
- func (x *Notification) GetChannel() Channel
- func (x *Notification) GetReceivers() []string
- func (x *Notification) GetStrategy() *SendStrategy
- func (x *Notification) GetTplId() string
- func (x *Notification) GetTplParams() map[string]string
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- func (m *Notification) Validate() error
- func (m *Notification) ValidateAll() error
- type NotificationMultiError
- type NotificationQueryServiceClient
- type NotificationQueryServiceServer
- type NotificationServiceClient
- type NotificationServiceServer
- type NotificationValidationError
- func (e NotificationValidationError) Cause() error
- func (e NotificationValidationError) Error() string
- func (e NotificationValidationError) ErrorName() string
- func (e NotificationValidationError) Field() string
- func (e NotificationValidationError) Key() bool
- func (e NotificationValidationError) Reason() string
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRequest) GetKey() string
- func (*QueryRequest) ProtoMessage()
- func (x *QueryRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRequest) Reset()
- func (x *QueryRequest) String() string
- func (m *QueryRequest) Validate() error
- func (m *QueryRequest) ValidateAll() error
- type QueryRequestMultiError
- type QueryRequestValidationError
- func (e QueryRequestValidationError) Cause() error
- func (e QueryRequestValidationError) Error() string
- func (e QueryRequestValidationError) ErrorName() string
- func (e QueryRequestValidationError) Field() string
- func (e QueryRequestValidationError) Key() bool
- func (e QueryRequestValidationError) Reason() string
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResponse) GetResult() *SendResponse
- func (*QueryResponse) ProtoMessage()
- func (x *QueryResponse) ProtoReflect() protoreflect.Message
- func (x *QueryResponse) Reset()
- func (x *QueryResponse) String() string
- func (m *QueryResponse) Validate() error
- func (m *QueryResponse) ValidateAll() error
- type QueryResponseMultiError
- type QueryResponseValidationError
- func (e QueryResponseValidationError) Cause() error
- func (e QueryResponseValidationError) Error() string
- func (e QueryResponseValidationError) ErrorName() string
- func (e QueryResponseValidationError) Field() string
- func (e QueryResponseValidationError) Key() bool
- func (e QueryResponseValidationError) Reason() string
- type ScheduledStrategy
- func (*ScheduledStrategy) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduledStrategy) GetSendTime() *timestamppb.Timestamp
- func (*ScheduledStrategy) ProtoMessage()
- func (x *ScheduledStrategy) ProtoReflect() protoreflect.Message
- func (x *ScheduledStrategy) Reset()
- func (x *ScheduledStrategy) String() string
- func (m *ScheduledStrategy) Validate() error
- func (m *ScheduledStrategy) ValidateAll() error
- type ScheduledStrategyMultiError
- type ScheduledStrategyValidationError
- func (e ScheduledStrategyValidationError) Cause() error
- func (e ScheduledStrategyValidationError) Error() string
- func (e ScheduledStrategyValidationError) ErrorName() string
- func (e ScheduledStrategyValidationError) Field() string
- func (e ScheduledStrategyValidationError) Key() bool
- func (e ScheduledStrategyValidationError) Reason() string
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRequest) GetNotification() *Notification
- func (*SendRequest) ProtoMessage()
- func (x *SendRequest) ProtoReflect() protoreflect.Message
- func (x *SendRequest) Reset()
- func (x *SendRequest) String() string
- func (m *SendRequest) Validate() error
- func (m *SendRequest) ValidateAll() error
- type SendRequestMultiError
- type SendRequestValidationError
- func (e SendRequestValidationError) Cause() error
- func (e SendRequestValidationError) Error() string
- func (e SendRequestValidationError) ErrorName() string
- func (e SendRequestValidationError) Field() string
- func (e SendRequestValidationError) Key() bool
- func (e SendRequestValidationError) Reason() string
- type SendResponse
- func (*SendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendResponse) GetResult() *SendResult
- func (*SendResponse) ProtoMessage()
- func (x *SendResponse) ProtoReflect() protoreflect.Message
- func (x *SendResponse) Reset()
- func (x *SendResponse) String() string
- func (m *SendResponse) Validate() error
- func (m *SendResponse) ValidateAll() error
- type SendResponseMultiError
- type SendResponseValidationError
- func (e SendResponseValidationError) Cause() error
- func (e SendResponseValidationError) Error() string
- func (e SendResponseValidationError) ErrorName() string
- func (e SendResponseValidationError) Field() string
- func (e SendResponseValidationError) Key() bool
- func (e SendResponseValidationError) Reason() string
- type SendResult
- func (*SendResult) Descriptor() ([]byte, []int)deprecated
- func (x *SendResult) GetErrCode() ErrCode
- func (x *SendResult) GetErrMsg() string
- func (x *SendResult) GetNotificationId() uint64
- func (x *SendResult) GetStatus() SendStatus
- func (*SendResult) ProtoMessage()
- func (x *SendResult) ProtoReflect() protoreflect.Message
- func (x *SendResult) Reset()
- func (x *SendResult) String() string
- func (m *SendResult) Validate() error
- func (m *SendResult) ValidateAll() error
- type SendResultMultiError
- type SendResultValidationError
- type SendStatus
- type SendStrategy
- func (*SendStrategy) Descriptor() ([]byte, []int)deprecated
- func (x *SendStrategy) GetDeadline() *DeadlineStrategy
- func (x *SendStrategy) GetDelayed() *DelayedStrategy
- func (x *SendStrategy) GetImmediate() *ImmediatelyStrategy
- func (x *SendStrategy) GetScheduled() *ScheduledStrategy
- func (x *SendStrategy) GetStrategyType() isSendStrategy_StrategyType
- func (x *SendStrategy) GetTimeWindow() *TimeWindowStrategy
- func (*SendStrategy) ProtoMessage()
- func (x *SendStrategy) ProtoReflect() protoreflect.Message
- func (x *SendStrategy) Reset()
- func (x *SendStrategy) String() string
- func (m *SendStrategy) Validate() error
- func (m *SendStrategy) ValidateAll() error
- type SendStrategyMultiError
- type SendStrategyValidationError
- func (e SendStrategyValidationError) Cause() error
- func (e SendStrategyValidationError) Error() string
- func (e SendStrategyValidationError) ErrorName() string
- func (e SendStrategyValidationError) Field() string
- func (e SendStrategyValidationError) Key() bool
- func (e SendStrategyValidationError) Reason() string
- type SendStrategy_Deadline
- type SendStrategy_Delayed
- type SendStrategy_Immediate
- type SendStrategy_Scheduled
- type SendStrategy_TimeWindow
- type TimeWindowStrategy
- func (*TimeWindowStrategy) Descriptor() ([]byte, []int)deprecated
- func (x *TimeWindowStrategy) GetEndTimeMillis() int64
- func (x *TimeWindowStrategy) GetStartTimeMillis() int64
- func (*TimeWindowStrategy) ProtoMessage()
- func (x *TimeWindowStrategy) ProtoReflect() protoreflect.Message
- func (x *TimeWindowStrategy) Reset()
- func (x *TimeWindowStrategy) String() string
- func (m *TimeWindowStrategy) Validate() error
- func (m *TimeWindowStrategy) ValidateAll() error
- type TimeWindowStrategyMultiError
- type TimeWindowStrategyValidationError
- func (e TimeWindowStrategyValidationError) Cause() error
- func (e TimeWindowStrategyValidationError) Error() string
- func (e TimeWindowStrategyValidationError) ErrorName() string
- func (e TimeWindowStrategyValidationError) Field() string
- func (e TimeWindowStrategyValidationError) Key() bool
- func (e TimeWindowStrategyValidationError) Reason() string
- type TxCancelRequest
- func (*TxCancelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TxCancelRequest) GetKey() string
- func (*TxCancelRequest) ProtoMessage()
- func (x *TxCancelRequest) ProtoReflect() protoreflect.Message
- func (x *TxCancelRequest) Reset()
- func (x *TxCancelRequest) String() string
- func (m *TxCancelRequest) Validate() error
- func (m *TxCancelRequest) ValidateAll() error
- type TxCancelRequestMultiError
- type TxCancelRequestValidationError
- func (e TxCancelRequestValidationError) Cause() error
- func (e TxCancelRequestValidationError) Error() string
- func (e TxCancelRequestValidationError) ErrorName() string
- func (e TxCancelRequestValidationError) Field() string
- func (e TxCancelRequestValidationError) Key() bool
- func (e TxCancelRequestValidationError) Reason() string
- type TxCancelResponse
- func (*TxCancelResponse) Descriptor() ([]byte, []int)deprecated
- func (*TxCancelResponse) ProtoMessage()
- func (x *TxCancelResponse) ProtoReflect() protoreflect.Message
- func (x *TxCancelResponse) Reset()
- func (x *TxCancelResponse) String() string
- func (m *TxCancelResponse) Validate() error
- func (m *TxCancelResponse) ValidateAll() error
- type TxCancelResponseMultiError
- type TxCancelResponseValidationError
- func (e TxCancelResponseValidationError) Cause() error
- func (e TxCancelResponseValidationError) Error() string
- func (e TxCancelResponseValidationError) ErrorName() string
- func (e TxCancelResponseValidationError) Field() string
- func (e TxCancelResponseValidationError) Key() bool
- func (e TxCancelResponseValidationError) Reason() string
- type TxCommitRequest
- func (*TxCommitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TxCommitRequest) GetKey() string
- func (*TxCommitRequest) ProtoMessage()
- func (x *TxCommitRequest) ProtoReflect() protoreflect.Message
- func (x *TxCommitRequest) Reset()
- func (x *TxCommitRequest) String() string
- func (m *TxCommitRequest) Validate() error
- func (m *TxCommitRequest) ValidateAll() error
- type TxCommitRequestMultiError
- type TxCommitRequestValidationError
- func (e TxCommitRequestValidationError) Cause() error
- func (e TxCommitRequestValidationError) Error() string
- func (e TxCommitRequestValidationError) ErrorName() string
- func (e TxCommitRequestValidationError) Field() string
- func (e TxCommitRequestValidationError) Key() bool
- func (e TxCommitRequestValidationError) Reason() string
- type TxCommitResponse
- func (*TxCommitResponse) Descriptor() ([]byte, []int)deprecated
- func (*TxCommitResponse) ProtoMessage()
- func (x *TxCommitResponse) ProtoReflect() protoreflect.Message
- func (x *TxCommitResponse) Reset()
- func (x *TxCommitResponse) String() string
- func (m *TxCommitResponse) Validate() error
- func (m *TxCommitResponse) ValidateAll() error
- type TxCommitResponseMultiError
- type TxCommitResponseValidationError
- func (e TxCommitResponseValidationError) Cause() error
- func (e TxCommitResponseValidationError) Error() string
- func (e TxCommitResponseValidationError) ErrorName() string
- func (e TxCommitResponseValidationError) Field() string
- func (e TxCommitResponseValidationError) Key() bool
- func (e TxCommitResponseValidationError) Reason() string
- type TxPrepareRequest
- func (*TxPrepareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TxPrepareRequest) GetNotification() *Notification
- func (*TxPrepareRequest) ProtoMessage()
- func (x *TxPrepareRequest) ProtoReflect() protoreflect.Message
- func (x *TxPrepareRequest) Reset()
- func (x *TxPrepareRequest) String() string
- func (m *TxPrepareRequest) Validate() error
- func (m *TxPrepareRequest) ValidateAll() error
- type TxPrepareRequestMultiError
- type TxPrepareRequestValidationError
- func (e TxPrepareRequestValidationError) Cause() error
- func (e TxPrepareRequestValidationError) Error() string
- func (e TxPrepareRequestValidationError) ErrorName() string
- func (e TxPrepareRequestValidationError) Field() string
- func (e TxPrepareRequestValidationError) Key() bool
- func (e TxPrepareRequestValidationError) Reason() string
- type TxPrepareResponse
- func (*TxPrepareResponse) Descriptor() ([]byte, []int)deprecated
- func (*TxPrepareResponse) ProtoMessage()
- func (x *TxPrepareResponse) ProtoReflect() protoreflect.Message
- func (x *TxPrepareResponse) Reset()
- func (x *TxPrepareResponse) String() string
- func (m *TxPrepareResponse) Validate() error
- func (m *TxPrepareResponse) ValidateAll() error
- type TxPrepareResponseMultiError
- type TxPrepareResponseValidationError
- func (e TxPrepareResponseValidationError) Cause() error
- func (e TxPrepareResponseValidationError) Error() string
- func (e TxPrepareResponseValidationError) ErrorName() string
- func (e TxPrepareResponseValidationError) Field() string
- func (e TxPrepareResponseValidationError) Key() bool
- func (e TxPrepareResponseValidationError) Reason() string
- type UnimplementedNotificationQueryServiceServer
- type UnimplementedNotificationServiceServer
- func (UnimplementedNotificationServiceServer) AsyncBatchSend(context.Context, *AsyncBatchSendRequest) (*AsyncBatchSendResponse, error)
- func (UnimplementedNotificationServiceServer) AsyncSend(context.Context, *AsyncSendRequest) (*AsyncSendResponse, error)
- func (UnimplementedNotificationServiceServer) BatchSend(context.Context, *BatchSendRequest) (*BatchSendResponse, error)
- func (UnimplementedNotificationServiceServer) Send(context.Context, *SendRequest) (*SendResponse, error)
- func (UnimplementedNotificationServiceServer) TxCancel(context.Context, *TxCancelRequest) (*TxCancelResponse, error)
- func (UnimplementedNotificationServiceServer) TxCommit(context.Context, *TxCommitRequest) (*TxCommitResponse, error)
- func (UnimplementedNotificationServiceServer) TxPrepare(context.Context, *TxPrepareRequest) (*TxPrepareResponse, error)
- type UnsafeNotificationQueryServiceServer
- type UnsafeNotificationServiceServer
Constants ¶
const ( NotificationService_Send_FullMethodName = "/notification.v1.NotificationService/Send" NotificationService_AsyncSend_FullMethodName = "/notification.v1.NotificationService/AsyncSend" NotificationService_BatchSend_FullMethodName = "/notification.v1.NotificationService/BatchSend" NotificationService_AsyncBatchSend_FullMethodName = "/notification.v1.NotificationService/AsyncBatchSend" NotificationService_TxPrepare_FullMethodName = "/notification.v1.NotificationService/TxPrepare" NotificationService_TxCommit_FullMethodName = "/notification.v1.NotificationService/TxCommit" NotificationService_TxCancel_FullMethodName = "/notification.v1.NotificationService/TxCancel" )
const ( NotificationQueryService_Query_FullMethodName = "/notification.v1.NotificationQueryService/Query" NotificationQueryService_Batch_FullMethodName = "/notification.v1.NotificationQueryService/Batch" )
Variables ¶
var ( Channel_name = map[int32]string{ 0: "CHANNEL_UNSPECIFIED", 1: "SMS", 2: "EMAIL", 3: "IN_APP", } Channel_value = map[string]int32{ "CHANNEL_UNSPECIFIED": 0, "SMS": 1, "EMAIL": 2, "IN_APP": 3, } )
Enum value maps for Channel.
var ( SendStatus_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "PREPARE", 2: "CANCEL", 3: "PENDING", 4: "SUCCESS", 5: "FAILURE", } SendStatus_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "PREPARE": 1, "CANCEL": 2, "PENDING": 3, "SUCCESS": 4, "FAILURE": 5, } )
Enum value maps for SendStatus.
var ( ErrCode_name = map[int32]string{ 0: "ERR_UNSPECIFIED", 1: "INVALID_PARAM", 2: "RATE_LIMITED", 3: "NO_AVAILABLE_CHANNEL", 4: "NO_AVAILABLE_PROVIDER", 5: "CHANNEL_NOT_FOUND", 6: "PROVIDER_NOT_FOUND", 7: "TEMPLATE_NOT_FOUND", 8: "BIZ_ID_NOT_FOUND", 9: "CONFIG_NOT_FOUND", 10: "QUOTA_CONFIG_NOT_FOUND", 11: "QUOTA_RECORD_NOT_FOUND", 12: "NOTIFICATION_NOT_FOUND", 13: "CREATE_NOTIFICATION_FAILED", 14: "SEND_NOTIFICATION_FAILED", 15: "QUOTA_NOT_ENOUGH", } ErrCode_value = map[string]int32{ "ERR_UNSPECIFIED": 0, "INVALID_PARAM": 1, "RATE_LIMITED": 2, "NO_AVAILABLE_CHANNEL": 3, "NO_AVAILABLE_PROVIDER": 4, "CHANNEL_NOT_FOUND": 5, "PROVIDER_NOT_FOUND": 6, "TEMPLATE_NOT_FOUND": 7, "BIZ_ID_NOT_FOUND": 8, "CONFIG_NOT_FOUND": 9, "QUOTA_CONFIG_NOT_FOUND": 10, "QUOTA_RECORD_NOT_FOUND": 11, "NOTIFICATION_NOT_FOUND": 12, "CREATE_NOTIFICATION_FAILED": 13, "SEND_NOTIFICATION_FAILED": 14, "QUOTA_NOT_ENOUGH": 15, } )
Enum value maps for ErrCode.
var File_notification_v1_notification_proto protoreflect.FileDescriptor
var File_notification_v1_notification_query_proto protoreflect.FileDescriptor
var NotificationQueryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "notification.v1.NotificationQueryService", HandlerType: (*NotificationQueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Query", Handler: _NotificationQueryService_Query_Handler, }, { MethodName: "Batch", Handler: _NotificationQueryService_Batch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "notification/v1/notification_query.proto", }
NotificationQueryService_ServiceDesc is the grpc.ServiceDesc for NotificationQueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var NotificationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "notification.v1.NotificationService", HandlerType: (*NotificationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Send", Handler: _NotificationService_Send_Handler, }, { MethodName: "AsyncSend", Handler: _NotificationService_AsyncSend_Handler, }, { MethodName: "BatchSend", Handler: _NotificationService_BatchSend_Handler, }, { MethodName: "AsyncBatchSend", Handler: _NotificationService_AsyncBatchSend_Handler, }, { MethodName: "TxPrepare", Handler: _NotificationService_TxPrepare_Handler, }, { MethodName: "TxCommit", Handler: _NotificationService_TxCommit_Handler, }, { MethodName: "TxCancel", Handler: _NotificationService_TxCancel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "notification/v1/notification.proto", }
NotificationService_ServiceDesc is the grpc.ServiceDesc for NotificationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNotificationQueryServiceServer ¶
func RegisterNotificationQueryServiceServer(s grpc.ServiceRegistrar, srv NotificationQueryServiceServer)
func RegisterNotificationServiceServer ¶
func RegisterNotificationServiceServer(s grpc.ServiceRegistrar, srv NotificationServiceServer)
Types ¶
type AsyncBatchSendRequest ¶
type AsyncBatchSendRequest struct { Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
func (*AsyncBatchSendRequest) Descriptor
deprecated
func (*AsyncBatchSendRequest) Descriptor() ([]byte, []int)
Deprecated: Use AsyncBatchSendRequest.ProtoReflect.Descriptor instead.
func (*AsyncBatchSendRequest) GetNotifications ¶
func (x *AsyncBatchSendRequest) GetNotifications() []*Notification
func (*AsyncBatchSendRequest) ProtoMessage ¶
func (*AsyncBatchSendRequest) ProtoMessage()
func (*AsyncBatchSendRequest) ProtoReflect ¶
func (x *AsyncBatchSendRequest) ProtoReflect() protoreflect.Message
func (*AsyncBatchSendRequest) Reset ¶
func (x *AsyncBatchSendRequest) Reset()
func (*AsyncBatchSendRequest) String ¶
func (x *AsyncBatchSendRequest) String() string
func (*AsyncBatchSendRequest) Validate ¶
func (m *AsyncBatchSendRequest) Validate() error
Validate checks the field values on AsyncBatchSendRequest 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 (*AsyncBatchSendRequest) ValidateAll ¶
func (m *AsyncBatchSendRequest) ValidateAll() error
ValidateAll checks the field values on AsyncBatchSendRequest 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 AsyncBatchSendRequestMultiError, or nil if none found.
type AsyncBatchSendRequestMultiError ¶
type AsyncBatchSendRequestMultiError []error
AsyncBatchSendRequestMultiError is an error wrapping multiple validation errors returned by AsyncBatchSendRequest.ValidateAll() if the designated constraints aren't met.
func (AsyncBatchSendRequestMultiError) AllErrors ¶
func (m AsyncBatchSendRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AsyncBatchSendRequestMultiError) Error ¶
func (m AsyncBatchSendRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AsyncBatchSendRequestValidationError ¶
type AsyncBatchSendRequestValidationError struct {
// contains filtered or unexported fields
}
AsyncBatchSendRequestValidationError is the validation error returned by AsyncBatchSendRequest.Validate if the designated constraints aren't met.
func (AsyncBatchSendRequestValidationError) Cause ¶
func (e AsyncBatchSendRequestValidationError) Cause() error
Cause function returns cause value.
func (AsyncBatchSendRequestValidationError) Error ¶
func (e AsyncBatchSendRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AsyncBatchSendRequestValidationError) ErrorName ¶
func (e AsyncBatchSendRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AsyncBatchSendRequestValidationError) Field ¶
func (e AsyncBatchSendRequestValidationError) Field() string
Field function returns field value.
func (AsyncBatchSendRequestValidationError) Key ¶
func (e AsyncBatchSendRequestValidationError) Key() bool
Key function returns key value.
func (AsyncBatchSendRequestValidationError) Reason ¶
func (e AsyncBatchSendRequestValidationError) Reason() string
Reason function returns reason value.
type AsyncBatchSendResponse ¶
type AsyncBatchSendResponse struct { NotificationIds []uint64 `protobuf:"varint,1,rep,packed,name=notification_ids,json=notificationIds,proto3" json:"notification_ids,omitempty"` // contains filtered or unexported fields }
func (*AsyncBatchSendResponse) Descriptor
deprecated
func (*AsyncBatchSendResponse) Descriptor() ([]byte, []int)
Deprecated: Use AsyncBatchSendResponse.ProtoReflect.Descriptor instead.
func (*AsyncBatchSendResponse) GetNotificationIds ¶
func (x *AsyncBatchSendResponse) GetNotificationIds() []uint64
func (*AsyncBatchSendResponse) ProtoMessage ¶
func (*AsyncBatchSendResponse) ProtoMessage()
func (*AsyncBatchSendResponse) ProtoReflect ¶
func (x *AsyncBatchSendResponse) ProtoReflect() protoreflect.Message
func (*AsyncBatchSendResponse) Reset ¶
func (x *AsyncBatchSendResponse) Reset()
func (*AsyncBatchSendResponse) String ¶
func (x *AsyncBatchSendResponse) String() string
func (*AsyncBatchSendResponse) Validate ¶
func (m *AsyncBatchSendResponse) Validate() error
Validate checks the field values on AsyncBatchSendResponse 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 (*AsyncBatchSendResponse) ValidateAll ¶
func (m *AsyncBatchSendResponse) ValidateAll() error
ValidateAll checks the field values on AsyncBatchSendResponse 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 AsyncBatchSendResponseMultiError, or nil if none found.
type AsyncBatchSendResponseMultiError ¶
type AsyncBatchSendResponseMultiError []error
AsyncBatchSendResponseMultiError is an error wrapping multiple validation errors returned by AsyncBatchSendResponse.ValidateAll() if the designated constraints aren't met.
func (AsyncBatchSendResponseMultiError) AllErrors ¶
func (m AsyncBatchSendResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AsyncBatchSendResponseMultiError) Error ¶
func (m AsyncBatchSendResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AsyncBatchSendResponseValidationError ¶
type AsyncBatchSendResponseValidationError struct {
// contains filtered or unexported fields
}
AsyncBatchSendResponseValidationError is the validation error returned by AsyncBatchSendResponse.Validate if the designated constraints aren't met.
func (AsyncBatchSendResponseValidationError) Cause ¶
func (e AsyncBatchSendResponseValidationError) Cause() error
Cause function returns cause value.
func (AsyncBatchSendResponseValidationError) Error ¶
func (e AsyncBatchSendResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AsyncBatchSendResponseValidationError) ErrorName ¶
func (e AsyncBatchSendResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AsyncBatchSendResponseValidationError) Field ¶
func (e AsyncBatchSendResponseValidationError) Field() string
Field function returns field value.
func (AsyncBatchSendResponseValidationError) Key ¶
func (e AsyncBatchSendResponseValidationError) Key() bool
Key function returns key value.
func (AsyncBatchSendResponseValidationError) Reason ¶
func (e AsyncBatchSendResponseValidationError) Reason() string
Reason function returns reason value.
type AsyncSendRequest ¶
type AsyncSendRequest struct { Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"` // contains filtered or unexported fields }
func (*AsyncSendRequest) Descriptor
deprecated
func (*AsyncSendRequest) Descriptor() ([]byte, []int)
Deprecated: Use AsyncSendRequest.ProtoReflect.Descriptor instead.
func (*AsyncSendRequest) GetNotification ¶
func (x *AsyncSendRequest) GetNotification() *Notification
func (*AsyncSendRequest) ProtoMessage ¶
func (*AsyncSendRequest) ProtoMessage()
func (*AsyncSendRequest) ProtoReflect ¶
func (x *AsyncSendRequest) ProtoReflect() protoreflect.Message
func (*AsyncSendRequest) Reset ¶
func (x *AsyncSendRequest) Reset()
func (*AsyncSendRequest) String ¶
func (x *AsyncSendRequest) String() string
func (*AsyncSendRequest) Validate ¶
func (m *AsyncSendRequest) Validate() error
Validate checks the field values on AsyncSendRequest 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 (*AsyncSendRequest) ValidateAll ¶
func (m *AsyncSendRequest) ValidateAll() error
ValidateAll checks the field values on AsyncSendRequest 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 AsyncSendRequestMultiError, or nil if none found.
type AsyncSendRequestMultiError ¶
type AsyncSendRequestMultiError []error
AsyncSendRequestMultiError is an error wrapping multiple validation errors returned by AsyncSendRequest.ValidateAll() if the designated constraints aren't met.
func (AsyncSendRequestMultiError) AllErrors ¶
func (m AsyncSendRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AsyncSendRequestMultiError) Error ¶
func (m AsyncSendRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AsyncSendRequestValidationError ¶
type AsyncSendRequestValidationError struct {
// contains filtered or unexported fields
}
AsyncSendRequestValidationError is the validation error returned by AsyncSendRequest.Validate if the designated constraints aren't met.
func (AsyncSendRequestValidationError) Cause ¶
func (e AsyncSendRequestValidationError) Cause() error
Cause function returns cause value.
func (AsyncSendRequestValidationError) Error ¶
func (e AsyncSendRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AsyncSendRequestValidationError) ErrorName ¶
func (e AsyncSendRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AsyncSendRequestValidationError) Field ¶
func (e AsyncSendRequestValidationError) Field() string
Field function returns field value.
func (AsyncSendRequestValidationError) Key ¶
func (e AsyncSendRequestValidationError) Key() bool
Key function returns key value.
func (AsyncSendRequestValidationError) Reason ¶
func (e AsyncSendRequestValidationError) Reason() string
Reason function returns reason value.
type AsyncSendResponse ¶
type AsyncSendResponse struct { Result *SendResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*AsyncSendResponse) Descriptor
deprecated
func (*AsyncSendResponse) Descriptor() ([]byte, []int)
Deprecated: Use AsyncSendResponse.ProtoReflect.Descriptor instead.
func (*AsyncSendResponse) GetResult ¶
func (x *AsyncSendResponse) GetResult() *SendResult
func (*AsyncSendResponse) ProtoMessage ¶
func (*AsyncSendResponse) ProtoMessage()
func (*AsyncSendResponse) ProtoReflect ¶
func (x *AsyncSendResponse) ProtoReflect() protoreflect.Message
func (*AsyncSendResponse) Reset ¶
func (x *AsyncSendResponse) Reset()
func (*AsyncSendResponse) String ¶
func (x *AsyncSendResponse) String() string
func (*AsyncSendResponse) Validate ¶
func (m *AsyncSendResponse) Validate() error
Validate checks the field values on AsyncSendResponse 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 (*AsyncSendResponse) ValidateAll ¶
func (m *AsyncSendResponse) ValidateAll() error
ValidateAll checks the field values on AsyncSendResponse 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 AsyncSendResponseMultiError, or nil if none found.
type AsyncSendResponseMultiError ¶
type AsyncSendResponseMultiError []error
AsyncSendResponseMultiError is an error wrapping multiple validation errors returned by AsyncSendResponse.ValidateAll() if the designated constraints aren't met.
func (AsyncSendResponseMultiError) AllErrors ¶
func (m AsyncSendResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AsyncSendResponseMultiError) Error ¶
func (m AsyncSendResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AsyncSendResponseValidationError ¶
type AsyncSendResponseValidationError struct {
// contains filtered or unexported fields
}
AsyncSendResponseValidationError is the validation error returned by AsyncSendResponse.Validate if the designated constraints aren't met.
func (AsyncSendResponseValidationError) Cause ¶
func (e AsyncSendResponseValidationError) Cause() error
Cause function returns cause value.
func (AsyncSendResponseValidationError) Error ¶
func (e AsyncSendResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AsyncSendResponseValidationError) ErrorName ¶
func (e AsyncSendResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AsyncSendResponseValidationError) Field ¶
func (e AsyncSendResponseValidationError) Field() string
Field function returns field value.
func (AsyncSendResponseValidationError) Key ¶
func (e AsyncSendResponseValidationError) Key() bool
Key function returns key value.
func (AsyncSendResponseValidationError) Reason ¶
func (e AsyncSendResponseValidationError) Reason() string
Reason function returns reason value.
type BatchRequest ¶
type BatchRequest struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*BatchRequest) Descriptor
deprecated
func (*BatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchRequest.ProtoReflect.Descriptor instead.
func (*BatchRequest) GetKeys ¶
func (x *BatchRequest) GetKeys() []string
func (*BatchRequest) ProtoMessage ¶
func (*BatchRequest) ProtoMessage()
func (*BatchRequest) ProtoReflect ¶
func (x *BatchRequest) ProtoReflect() protoreflect.Message
func (*BatchRequest) Reset ¶
func (x *BatchRequest) Reset()
func (*BatchRequest) String ¶
func (x *BatchRequest) String() string
func (*BatchRequest) Validate ¶
func (m *BatchRequest) Validate() error
Validate checks the field values on BatchRequest 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 (*BatchRequest) ValidateAll ¶
func (m *BatchRequest) ValidateAll() error
ValidateAll checks the field values on BatchRequest 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 BatchRequestMultiError, or nil if none found.
type BatchRequestMultiError ¶
type BatchRequestMultiError []error
BatchRequestMultiError is an error wrapping multiple validation errors returned by BatchRequest.ValidateAll() if the designated constraints aren't met.
func (BatchRequestMultiError) AllErrors ¶
func (m BatchRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchRequestMultiError) Error ¶
func (m BatchRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchRequestValidationError ¶
type BatchRequestValidationError struct {
// contains filtered or unexported fields
}
BatchRequestValidationError is the validation error returned by BatchRequest.Validate if the designated constraints aren't met.
func (BatchRequestValidationError) Cause ¶
func (e BatchRequestValidationError) Cause() error
Cause function returns cause value.
func (BatchRequestValidationError) Error ¶
func (e BatchRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BatchRequestValidationError) ErrorName ¶
func (e BatchRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BatchRequestValidationError) Field ¶
func (e BatchRequestValidationError) Field() string
Field function returns field value.
func (BatchRequestValidationError) Key ¶
func (e BatchRequestValidationError) Key() bool
Key function returns key value.
func (BatchRequestValidationError) Reason ¶
func (e BatchRequestValidationError) Reason() string
Reason function returns reason value.
type BatchResponse ¶
type BatchResponse struct { Results []*SendResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*BatchResponse) Descriptor
deprecated
func (*BatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchResponse.ProtoReflect.Descriptor instead.
func (*BatchResponse) GetResults ¶
func (x *BatchResponse) GetResults() []*SendResponse
func (*BatchResponse) ProtoMessage ¶
func (*BatchResponse) ProtoMessage()
func (*BatchResponse) ProtoReflect ¶
func (x *BatchResponse) ProtoReflect() protoreflect.Message
func (*BatchResponse) Reset ¶
func (x *BatchResponse) Reset()
func (*BatchResponse) String ¶
func (x *BatchResponse) String() string
func (*BatchResponse) Validate ¶
func (m *BatchResponse) Validate() error
Validate checks the field values on BatchResponse 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 (*BatchResponse) ValidateAll ¶
func (m *BatchResponse) ValidateAll() error
ValidateAll checks the field values on BatchResponse 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 BatchResponseMultiError, or nil if none found.
type BatchResponseMultiError ¶
type BatchResponseMultiError []error
BatchResponseMultiError is an error wrapping multiple validation errors returned by BatchResponse.ValidateAll() if the designated constraints aren't met.
func (BatchResponseMultiError) AllErrors ¶
func (m BatchResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchResponseMultiError) Error ¶
func (m BatchResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchResponseValidationError ¶
type BatchResponseValidationError struct {
// contains filtered or unexported fields
}
BatchResponseValidationError is the validation error returned by BatchResponse.Validate if the designated constraints aren't met.
func (BatchResponseValidationError) Cause ¶
func (e BatchResponseValidationError) Cause() error
Cause function returns cause value.
func (BatchResponseValidationError) Error ¶
func (e BatchResponseValidationError) Error() string
Error satisfies the builtin error interface
func (BatchResponseValidationError) ErrorName ¶
func (e BatchResponseValidationError) ErrorName() string
ErrorName returns error name.
func (BatchResponseValidationError) Field ¶
func (e BatchResponseValidationError) Field() string
Field function returns field value.
func (BatchResponseValidationError) Key ¶
func (e BatchResponseValidationError) Key() bool
Key function returns key value.
func (BatchResponseValidationError) Reason ¶
func (e BatchResponseValidationError) Reason() string
Reason function returns reason value.
type BatchSendRequest ¶
type BatchSendRequest struct { Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
func (*BatchSendRequest) Descriptor
deprecated
func (*BatchSendRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchSendRequest.ProtoReflect.Descriptor instead.
func (*BatchSendRequest) GetNotifications ¶
func (x *BatchSendRequest) GetNotifications() []*Notification
func (*BatchSendRequest) ProtoMessage ¶
func (*BatchSendRequest) ProtoMessage()
func (*BatchSendRequest) ProtoReflect ¶
func (x *BatchSendRequest) ProtoReflect() protoreflect.Message
func (*BatchSendRequest) Reset ¶
func (x *BatchSendRequest) Reset()
func (*BatchSendRequest) String ¶
func (x *BatchSendRequest) String() string
func (*BatchSendRequest) Validate ¶
func (m *BatchSendRequest) Validate() error
Validate checks the field values on BatchSendRequest 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 (*BatchSendRequest) ValidateAll ¶
func (m *BatchSendRequest) ValidateAll() error
ValidateAll checks the field values on BatchSendRequest 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 BatchSendRequestMultiError, or nil if none found.
type BatchSendRequestMultiError ¶
type BatchSendRequestMultiError []error
BatchSendRequestMultiError is an error wrapping multiple validation errors returned by BatchSendRequest.ValidateAll() if the designated constraints aren't met.
func (BatchSendRequestMultiError) AllErrors ¶
func (m BatchSendRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchSendRequestMultiError) Error ¶
func (m BatchSendRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchSendRequestValidationError ¶
type BatchSendRequestValidationError struct {
// contains filtered or unexported fields
}
BatchSendRequestValidationError is the validation error returned by BatchSendRequest.Validate if the designated constraints aren't met.
func (BatchSendRequestValidationError) Cause ¶
func (e BatchSendRequestValidationError) Cause() error
Cause function returns cause value.
func (BatchSendRequestValidationError) Error ¶
func (e BatchSendRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BatchSendRequestValidationError) ErrorName ¶
func (e BatchSendRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BatchSendRequestValidationError) Field ¶
func (e BatchSendRequestValidationError) Field() string
Field function returns field value.
func (BatchSendRequestValidationError) Key ¶
func (e BatchSendRequestValidationError) Key() bool
Key function returns key value.
func (BatchSendRequestValidationError) Reason ¶
func (e BatchSendRequestValidationError) Reason() string
Reason function returns reason value.
type BatchSendResponse ¶
type BatchSendResponse struct { Results []*SendResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` TotalCnt int32 `protobuf:"varint,2,opt,name=total_cnt,json=totalCnt,proto3" json:"total_cnt,omitempty"` SuccessCnt int32 `protobuf:"varint,3,opt,name=success_cnt,json=successCnt,proto3" json:"success_cnt,omitempty"` // contains filtered or unexported fields }
func (*BatchSendResponse) Descriptor
deprecated
func (*BatchSendResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchSendResponse.ProtoReflect.Descriptor instead.
func (*BatchSendResponse) GetResults ¶
func (x *BatchSendResponse) GetResults() []*SendResult
func (*BatchSendResponse) GetSuccessCnt ¶
func (x *BatchSendResponse) GetSuccessCnt() int32
func (*BatchSendResponse) GetTotalCnt ¶
func (x *BatchSendResponse) GetTotalCnt() int32
func (*BatchSendResponse) ProtoMessage ¶
func (*BatchSendResponse) ProtoMessage()
func (*BatchSendResponse) ProtoReflect ¶
func (x *BatchSendResponse) ProtoReflect() protoreflect.Message
func (*BatchSendResponse) Reset ¶
func (x *BatchSendResponse) Reset()
func (*BatchSendResponse) String ¶
func (x *BatchSendResponse) String() string
func (*BatchSendResponse) Validate ¶
func (m *BatchSendResponse) Validate() error
Validate checks the field values on BatchSendResponse 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 (*BatchSendResponse) ValidateAll ¶
func (m *BatchSendResponse) ValidateAll() error
ValidateAll checks the field values on BatchSendResponse 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 BatchSendResponseMultiError, or nil if none found.
type BatchSendResponseMultiError ¶
type BatchSendResponseMultiError []error
BatchSendResponseMultiError is an error wrapping multiple validation errors returned by BatchSendResponse.ValidateAll() if the designated constraints aren't met.
func (BatchSendResponseMultiError) AllErrors ¶
func (m BatchSendResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchSendResponseMultiError) Error ¶
func (m BatchSendResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchSendResponseValidationError ¶
type BatchSendResponseValidationError struct {
// contains filtered or unexported fields
}
BatchSendResponseValidationError is the validation error returned by BatchSendResponse.Validate if the designated constraints aren't met.
func (BatchSendResponseValidationError) Cause ¶
func (e BatchSendResponseValidationError) Cause() error
Cause function returns cause value.
func (BatchSendResponseValidationError) Error ¶
func (e BatchSendResponseValidationError) Error() string
Error satisfies the builtin error interface
func (BatchSendResponseValidationError) ErrorName ¶
func (e BatchSendResponseValidationError) ErrorName() string
ErrorName returns error name.
func (BatchSendResponseValidationError) Field ¶
func (e BatchSendResponseValidationError) Field() string
Field function returns field value.
func (BatchSendResponseValidationError) Key ¶
func (e BatchSendResponseValidationError) Key() bool
Key function returns key value.
func (BatchSendResponseValidationError) Reason ¶
func (e BatchSendResponseValidationError) Reason() string
Reason function returns reason value.
type Channel ¶
type Channel int32
func (Channel) Descriptor ¶
func (Channel) Descriptor() protoreflect.EnumDescriptor
func (Channel) EnumDescriptor
deprecated
func (Channel) Number ¶
func (x Channel) Number() protoreflect.EnumNumber
func (Channel) Type ¶
func (Channel) Type() protoreflect.EnumType
type DeadlineStrategy ¶
type DeadlineStrategy struct { Deadline *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=deadline,proto3" json:"deadline,omitempty"` // contains filtered or unexported fields }
func (*DeadlineStrategy) Descriptor
deprecated
func (*DeadlineStrategy) Descriptor() ([]byte, []int)
Deprecated: Use DeadlineStrategy.ProtoReflect.Descriptor instead.
func (*DeadlineStrategy) GetDeadline ¶
func (x *DeadlineStrategy) GetDeadline() *timestamppb.Timestamp
func (*DeadlineStrategy) ProtoMessage ¶
func (*DeadlineStrategy) ProtoMessage()
func (*DeadlineStrategy) ProtoReflect ¶
func (x *DeadlineStrategy) ProtoReflect() protoreflect.Message
func (*DeadlineStrategy) Reset ¶
func (x *DeadlineStrategy) Reset()
func (*DeadlineStrategy) String ¶
func (x *DeadlineStrategy) String() string
func (*DeadlineStrategy) Validate ¶
func (m *DeadlineStrategy) Validate() error
Validate checks the field values on DeadlineStrategy 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 (*DeadlineStrategy) ValidateAll ¶
func (m *DeadlineStrategy) ValidateAll() error
ValidateAll checks the field values on DeadlineStrategy 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 DeadlineStrategyMultiError, or nil if none found.
type DeadlineStrategyMultiError ¶
type DeadlineStrategyMultiError []error
DeadlineStrategyMultiError is an error wrapping multiple validation errors returned by DeadlineStrategy.ValidateAll() if the designated constraints aren't met.
func (DeadlineStrategyMultiError) AllErrors ¶
func (m DeadlineStrategyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeadlineStrategyMultiError) Error ¶
func (m DeadlineStrategyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeadlineStrategyValidationError ¶
type DeadlineStrategyValidationError struct {
// contains filtered or unexported fields
}
DeadlineStrategyValidationError is the validation error returned by DeadlineStrategy.Validate if the designated constraints aren't met.
func (DeadlineStrategyValidationError) Cause ¶
func (e DeadlineStrategyValidationError) Cause() error
Cause function returns cause value.
func (DeadlineStrategyValidationError) Error ¶
func (e DeadlineStrategyValidationError) Error() string
Error satisfies the builtin error interface
func (DeadlineStrategyValidationError) ErrorName ¶
func (e DeadlineStrategyValidationError) ErrorName() string
ErrorName returns error name.
func (DeadlineStrategyValidationError) Field ¶
func (e DeadlineStrategyValidationError) Field() string
Field function returns field value.
func (DeadlineStrategyValidationError) Key ¶
func (e DeadlineStrategyValidationError) Key() bool
Key function returns key value.
func (DeadlineStrategyValidationError) Reason ¶
func (e DeadlineStrategyValidationError) Reason() string
Reason function returns reason value.
type DelayedStrategy ¶
type DelayedStrategy struct { DelaySeconds int64 `protobuf:"varint,1,opt,name=delay_seconds,json=delaySeconds,proto3" json:"delay_seconds,omitempty"` // contains filtered or unexported fields }
func (*DelayedStrategy) Descriptor
deprecated
func (*DelayedStrategy) Descriptor() ([]byte, []int)
Deprecated: Use DelayedStrategy.ProtoReflect.Descriptor instead.
func (*DelayedStrategy) GetDelaySeconds ¶
func (x *DelayedStrategy) GetDelaySeconds() int64
func (*DelayedStrategy) ProtoMessage ¶
func (*DelayedStrategy) ProtoMessage()
func (*DelayedStrategy) ProtoReflect ¶
func (x *DelayedStrategy) ProtoReflect() protoreflect.Message
func (*DelayedStrategy) Reset ¶
func (x *DelayedStrategy) Reset()
func (*DelayedStrategy) String ¶
func (x *DelayedStrategy) String() string
func (*DelayedStrategy) Validate ¶
func (m *DelayedStrategy) Validate() error
Validate checks the field values on DelayedStrategy 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 (*DelayedStrategy) ValidateAll ¶
func (m *DelayedStrategy) ValidateAll() error
ValidateAll checks the field values on DelayedStrategy 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 DelayedStrategyMultiError, or nil if none found.
type DelayedStrategyMultiError ¶
type DelayedStrategyMultiError []error
DelayedStrategyMultiError is an error wrapping multiple validation errors returned by DelayedStrategy.ValidateAll() if the designated constraints aren't met.
func (DelayedStrategyMultiError) AllErrors ¶
func (m DelayedStrategyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DelayedStrategyMultiError) Error ¶
func (m DelayedStrategyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DelayedStrategyValidationError ¶
type DelayedStrategyValidationError struct {
// contains filtered or unexported fields
}
DelayedStrategyValidationError is the validation error returned by DelayedStrategy.Validate if the designated constraints aren't met.
func (DelayedStrategyValidationError) Cause ¶
func (e DelayedStrategyValidationError) Cause() error
Cause function returns cause value.
func (DelayedStrategyValidationError) Error ¶
func (e DelayedStrategyValidationError) Error() string
Error satisfies the builtin error interface
func (DelayedStrategyValidationError) ErrorName ¶
func (e DelayedStrategyValidationError) ErrorName() string
ErrorName returns error name.
func (DelayedStrategyValidationError) Field ¶
func (e DelayedStrategyValidationError) Field() string
Field function returns field value.
func (DelayedStrategyValidationError) Key ¶
func (e DelayedStrategyValidationError) Key() bool
Key function returns key value.
func (DelayedStrategyValidationError) Reason ¶
func (e DelayedStrategyValidationError) Reason() string
Reason function returns reason value.
type ErrCode ¶
type ErrCode int32
const ( ErrCode_ERR_UNSPECIFIED ErrCode = 0 ErrCode_INVALID_PARAM ErrCode = 1 ErrCode_RATE_LIMITED ErrCode = 2 ErrCode_NO_AVAILABLE_CHANNEL ErrCode = 3 ErrCode_NO_AVAILABLE_PROVIDER ErrCode = 4 ErrCode_CHANNEL_NOT_FOUND ErrCode = 5 ErrCode_PROVIDER_NOT_FOUND ErrCode = 6 ErrCode_TEMPLATE_NOT_FOUND ErrCode = 7 ErrCode_BIZ_ID_NOT_FOUND ErrCode = 8 ErrCode_CONFIG_NOT_FOUND ErrCode = 9 ErrCode_QUOTA_CONFIG_NOT_FOUND ErrCode = 10 ErrCode_QUOTA_RECORD_NOT_FOUND ErrCode = 11 ErrCode_NOTIFICATION_NOT_FOUND ErrCode = 12 ErrCode_CREATE_NOTIFICATION_FAILED ErrCode = 13 ErrCode_SEND_NOTIFICATION_FAILED ErrCode = 14 ErrCode_QUOTA_NOT_ENOUGH ErrCode = 15 )
func (ErrCode) Descriptor ¶
func (ErrCode) Descriptor() protoreflect.EnumDescriptor
func (ErrCode) EnumDescriptor
deprecated
func (ErrCode) Number ¶
func (x ErrCode) Number() protoreflect.EnumNumber
func (ErrCode) Type ¶
func (ErrCode) Type() protoreflect.EnumType
type ImmediatelyStrategy ¶
type ImmediatelyStrategy struct {
// contains filtered or unexported fields
}
func (*ImmediatelyStrategy) Descriptor
deprecated
func (*ImmediatelyStrategy) Descriptor() ([]byte, []int)
Deprecated: Use ImmediatelyStrategy.ProtoReflect.Descriptor instead.
func (*ImmediatelyStrategy) ProtoMessage ¶
func (*ImmediatelyStrategy) ProtoMessage()
func (*ImmediatelyStrategy) ProtoReflect ¶
func (x *ImmediatelyStrategy) ProtoReflect() protoreflect.Message
func (*ImmediatelyStrategy) Reset ¶
func (x *ImmediatelyStrategy) Reset()
func (*ImmediatelyStrategy) String ¶
func (x *ImmediatelyStrategy) String() string
func (*ImmediatelyStrategy) Validate ¶
func (m *ImmediatelyStrategy) Validate() error
Validate checks the field values on ImmediatelyStrategy 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 (*ImmediatelyStrategy) ValidateAll ¶
func (m *ImmediatelyStrategy) ValidateAll() error
ValidateAll checks the field values on ImmediatelyStrategy 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 ImmediatelyStrategyMultiError, or nil if none found.
type ImmediatelyStrategyMultiError ¶
type ImmediatelyStrategyMultiError []error
ImmediatelyStrategyMultiError is an error wrapping multiple validation errors returned by ImmediatelyStrategy.ValidateAll() if the designated constraints aren't met.
func (ImmediatelyStrategyMultiError) AllErrors ¶
func (m ImmediatelyStrategyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ImmediatelyStrategyMultiError) Error ¶
func (m ImmediatelyStrategyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ImmediatelyStrategyValidationError ¶
type ImmediatelyStrategyValidationError struct {
// contains filtered or unexported fields
}
ImmediatelyStrategyValidationError is the validation error returned by ImmediatelyStrategy.Validate if the designated constraints aren't met.
func (ImmediatelyStrategyValidationError) Cause ¶
func (e ImmediatelyStrategyValidationError) Cause() error
Cause function returns cause value.
func (ImmediatelyStrategyValidationError) Error ¶
func (e ImmediatelyStrategyValidationError) Error() string
Error satisfies the builtin error interface
func (ImmediatelyStrategyValidationError) ErrorName ¶
func (e ImmediatelyStrategyValidationError) ErrorName() string
ErrorName returns error name.
func (ImmediatelyStrategyValidationError) Field ¶
func (e ImmediatelyStrategyValidationError) Field() string
Field function returns field value.
func (ImmediatelyStrategyValidationError) Key ¶
func (e ImmediatelyStrategyValidationError) Key() bool
Key function returns key value.
func (ImmediatelyStrategyValidationError) Reason ¶
func (e ImmediatelyStrategyValidationError) Reason() string
Reason function returns reason value.
type Notification ¶
type Notification struct { BizKey string `protobuf:"bytes,1,opt,name=biz_key,json=bizKey,proto3" json:"biz_key,omitempty"` Receivers []string `protobuf:"bytes,2,rep,name=receivers,proto3" json:"receivers,omitempty"` Channel Channel `protobuf:"varint,3,opt,name=channel,proto3,enum=notification.v1.Channel" json:"channel,omitempty"` TplId string `protobuf:"bytes,4,opt,name=tpl_id,json=tplId,proto3" json:"tpl_id,omitempty"` TplParams map[string]string `` /* 162-byte string literal not displayed */ Strategy *SendStrategy `protobuf:"bytes,6,opt,name=strategy,proto3" json:"strategy,omitempty"` // contains filtered or unexported fields }
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetBizKey ¶ added in v0.0.3
func (x *Notification) GetBizKey() string
func (*Notification) GetChannel ¶
func (x *Notification) GetChannel() Channel
func (*Notification) GetReceivers ¶
func (x *Notification) GetReceivers() []string
func (*Notification) GetStrategy ¶
func (x *Notification) GetStrategy() *SendStrategy
func (*Notification) GetTplId ¶ added in v0.0.3
func (x *Notification) GetTplId() string
func (*Notification) GetTplParams ¶ added in v0.0.3
func (x *Notification) GetTplParams() map[string]string
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) String ¶
func (x *Notification) String() string
func (*Notification) Validate ¶
func (m *Notification) Validate() error
Validate checks the field values on Notification 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 (*Notification) ValidateAll ¶
func (m *Notification) ValidateAll() error
ValidateAll checks the field values on Notification 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 NotificationMultiError, or nil if none found.
type NotificationMultiError ¶
type NotificationMultiError []error
NotificationMultiError is an error wrapping multiple validation errors returned by Notification.ValidateAll() if the designated constraints aren't met.
func (NotificationMultiError) AllErrors ¶
func (m NotificationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NotificationMultiError) Error ¶
func (m NotificationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NotificationQueryServiceClient ¶
type NotificationQueryServiceClient interface { Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) }
NotificationQueryServiceClient is the client API for NotificationQueryService 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 NewNotificationQueryServiceClient ¶
func NewNotificationQueryServiceClient(cc grpc.ClientConnInterface) NotificationQueryServiceClient
type NotificationQueryServiceServer ¶
type NotificationQueryServiceServer interface { Query(context.Context, *QueryRequest) (*QueryResponse, error) Batch(context.Context, *BatchRequest) (*BatchResponse, error) }
NotificationQueryServiceServer is the server API for NotificationQueryService service. All implementations should embed UnimplementedNotificationQueryServiceServer for forward compatibility.
type NotificationServiceClient ¶
type NotificationServiceClient interface { Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) AsyncSend(ctx context.Context, in *AsyncSendRequest, opts ...grpc.CallOption) (*AsyncSendResponse, error) BatchSend(ctx context.Context, in *BatchSendRequest, opts ...grpc.CallOption) (*BatchSendResponse, error) AsyncBatchSend(ctx context.Context, in *AsyncBatchSendRequest, opts ...grpc.CallOption) (*AsyncBatchSendResponse, error) TxPrepare(ctx context.Context, in *TxPrepareRequest, opts ...grpc.CallOption) (*TxPrepareResponse, error) TxCommit(ctx context.Context, in *TxCommitRequest, opts ...grpc.CallOption) (*TxCommitResponse, error) TxCancel(ctx context.Context, in *TxCancelRequest, opts ...grpc.CallOption) (*TxCancelResponse, error) }
NotificationServiceClient is the client API for NotificationService 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 NewNotificationServiceClient ¶
func NewNotificationServiceClient(cc grpc.ClientConnInterface) NotificationServiceClient
type NotificationServiceServer ¶
type NotificationServiceServer interface { Send(context.Context, *SendRequest) (*SendResponse, error) AsyncSend(context.Context, *AsyncSendRequest) (*AsyncSendResponse, error) BatchSend(context.Context, *BatchSendRequest) (*BatchSendResponse, error) AsyncBatchSend(context.Context, *AsyncBatchSendRequest) (*AsyncBatchSendResponse, error) TxPrepare(context.Context, *TxPrepareRequest) (*TxPrepareResponse, error) TxCommit(context.Context, *TxCommitRequest) (*TxCommitResponse, error) TxCancel(context.Context, *TxCancelRequest) (*TxCancelResponse, error) }
NotificationServiceServer is the server API for NotificationService service. All implementations should embed UnimplementedNotificationServiceServer for forward compatibility.
type NotificationValidationError ¶
type NotificationValidationError struct {
// contains filtered or unexported fields
}
NotificationValidationError is the validation error returned by Notification.Validate if the designated constraints aren't met.
func (NotificationValidationError) Cause ¶
func (e NotificationValidationError) Cause() error
Cause function returns cause value.
func (NotificationValidationError) Error ¶
func (e NotificationValidationError) Error() string
Error satisfies the builtin error interface
func (NotificationValidationError) ErrorName ¶
func (e NotificationValidationError) ErrorName() string
ErrorName returns error name.
func (NotificationValidationError) Field ¶
func (e NotificationValidationError) Field() string
Field function returns field value.
func (NotificationValidationError) Key ¶
func (e NotificationValidationError) Key() bool
Key function returns key value.
func (NotificationValidationError) Reason ¶
func (e NotificationValidationError) Reason() string
Reason function returns reason value.
type QueryRequest ¶
type QueryRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*QueryRequest) Descriptor
deprecated
func (*QueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.
func (*QueryRequest) GetKey ¶
func (x *QueryRequest) GetKey() string
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) ProtoReflect ¶
func (x *QueryRequest) ProtoReflect() protoreflect.Message
func (*QueryRequest) Reset ¶
func (x *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (x *QueryRequest) String() string
func (*QueryRequest) Validate ¶
func (m *QueryRequest) Validate() error
Validate checks the field values on QueryRequest 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 (*QueryRequest) ValidateAll ¶
func (m *QueryRequest) ValidateAll() error
ValidateAll checks the field values on QueryRequest 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 QueryRequestMultiError, or nil if none found.
type QueryRequestMultiError ¶
type QueryRequestMultiError []error
QueryRequestMultiError is an error wrapping multiple validation errors returned by QueryRequest.ValidateAll() if the designated constraints aren't met.
func (QueryRequestMultiError) AllErrors ¶
func (m QueryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryRequestMultiError) Error ¶
func (m QueryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryRequestValidationError ¶
type QueryRequestValidationError struct {
// contains filtered or unexported fields
}
QueryRequestValidationError is the validation error returned by QueryRequest.Validate if the designated constraints aren't met.
func (QueryRequestValidationError) Cause ¶
func (e QueryRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryRequestValidationError) Error ¶
func (e QueryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryRequestValidationError) ErrorName ¶
func (e QueryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryRequestValidationError) Field ¶
func (e QueryRequestValidationError) Field() string
Field function returns field value.
func (QueryRequestValidationError) Key ¶
func (e QueryRequestValidationError) Key() bool
Key function returns key value.
func (QueryRequestValidationError) Reason ¶
func (e QueryRequestValidationError) Reason() string
Reason function returns reason value.
type QueryResponse ¶
type QueryResponse struct { Result *SendResponse `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*QueryResponse) Descriptor
deprecated
func (*QueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.
func (*QueryResponse) GetResult ¶
func (x *QueryResponse) GetResult() *SendResponse
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) ProtoReflect ¶
func (x *QueryResponse) ProtoReflect() protoreflect.Message
func (*QueryResponse) Reset ¶
func (x *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (x *QueryResponse) String() string
func (*QueryResponse) Validate ¶
func (m *QueryResponse) Validate() error
Validate checks the field values on QueryResponse 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 (*QueryResponse) ValidateAll ¶
func (m *QueryResponse) ValidateAll() error
ValidateAll checks the field values on QueryResponse 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 QueryResponseMultiError, or nil if none found.
type QueryResponseMultiError ¶
type QueryResponseMultiError []error
QueryResponseMultiError is an error wrapping multiple validation errors returned by QueryResponse.ValidateAll() if the designated constraints aren't met.
func (QueryResponseMultiError) AllErrors ¶
func (m QueryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryResponseMultiError) Error ¶
func (m QueryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryResponseValidationError ¶
type QueryResponseValidationError struct {
// contains filtered or unexported fields
}
QueryResponseValidationError is the validation error returned by QueryResponse.Validate if the designated constraints aren't met.
func (QueryResponseValidationError) Cause ¶
func (e QueryResponseValidationError) Cause() error
Cause function returns cause value.
func (QueryResponseValidationError) Error ¶
func (e QueryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (QueryResponseValidationError) ErrorName ¶
func (e QueryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (QueryResponseValidationError) Field ¶
func (e QueryResponseValidationError) Field() string
Field function returns field value.
func (QueryResponseValidationError) Key ¶
func (e QueryResponseValidationError) Key() bool
Key function returns key value.
func (QueryResponseValidationError) Reason ¶
func (e QueryResponseValidationError) Reason() string
Reason function returns reason value.
type ScheduledStrategy ¶
type ScheduledStrategy struct { SendTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // contains filtered or unexported fields }
func (*ScheduledStrategy) Descriptor
deprecated
func (*ScheduledStrategy) Descriptor() ([]byte, []int)
Deprecated: Use ScheduledStrategy.ProtoReflect.Descriptor instead.
func (*ScheduledStrategy) GetSendTime ¶
func (x *ScheduledStrategy) GetSendTime() *timestamppb.Timestamp
func (*ScheduledStrategy) ProtoMessage ¶
func (*ScheduledStrategy) ProtoMessage()
func (*ScheduledStrategy) ProtoReflect ¶
func (x *ScheduledStrategy) ProtoReflect() protoreflect.Message
func (*ScheduledStrategy) Reset ¶
func (x *ScheduledStrategy) Reset()
func (*ScheduledStrategy) String ¶
func (x *ScheduledStrategy) String() string
func (*ScheduledStrategy) Validate ¶
func (m *ScheduledStrategy) Validate() error
Validate checks the field values on ScheduledStrategy 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 (*ScheduledStrategy) ValidateAll ¶
func (m *ScheduledStrategy) ValidateAll() error
ValidateAll checks the field values on ScheduledStrategy 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 ScheduledStrategyMultiError, or nil if none found.
type ScheduledStrategyMultiError ¶
type ScheduledStrategyMultiError []error
ScheduledStrategyMultiError is an error wrapping multiple validation errors returned by ScheduledStrategy.ValidateAll() if the designated constraints aren't met.
func (ScheduledStrategyMultiError) AllErrors ¶
func (m ScheduledStrategyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ScheduledStrategyMultiError) Error ¶
func (m ScheduledStrategyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ScheduledStrategyValidationError ¶
type ScheduledStrategyValidationError struct {
// contains filtered or unexported fields
}
ScheduledStrategyValidationError is the validation error returned by ScheduledStrategy.Validate if the designated constraints aren't met.
func (ScheduledStrategyValidationError) Cause ¶
func (e ScheduledStrategyValidationError) Cause() error
Cause function returns cause value.
func (ScheduledStrategyValidationError) Error ¶
func (e ScheduledStrategyValidationError) Error() string
Error satisfies the builtin error interface
func (ScheduledStrategyValidationError) ErrorName ¶
func (e ScheduledStrategyValidationError) ErrorName() string
ErrorName returns error name.
func (ScheduledStrategyValidationError) Field ¶
func (e ScheduledStrategyValidationError) Field() string
Field function returns field value.
func (ScheduledStrategyValidationError) Key ¶
func (e ScheduledStrategyValidationError) Key() bool
Key function returns key value.
func (ScheduledStrategyValidationError) Reason ¶
func (e ScheduledStrategyValidationError) Reason() string
Reason function returns reason value.
type SendRequest ¶
type SendRequest struct { Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"` // contains filtered or unexported fields }
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetNotification ¶
func (x *SendRequest) GetNotification() *Notification
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) String ¶
func (x *SendRequest) String() string
func (*SendRequest) Validate ¶
func (m *SendRequest) Validate() error
Validate checks the field values on SendRequest 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 (*SendRequest) ValidateAll ¶
func (m *SendRequest) ValidateAll() error
ValidateAll checks the field values on SendRequest 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 SendRequestMultiError, or nil if none found.
type SendRequestMultiError ¶
type SendRequestMultiError []error
SendRequestMultiError is an error wrapping multiple validation errors returned by SendRequest.ValidateAll() if the designated constraints aren't met.
func (SendRequestMultiError) AllErrors ¶
func (m SendRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendRequestMultiError) Error ¶
func (m SendRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendRequestValidationError ¶
type SendRequestValidationError struct {
// contains filtered or unexported fields
}
SendRequestValidationError is the validation error returned by SendRequest.Validate if the designated constraints aren't met.
func (SendRequestValidationError) Cause ¶
func (e SendRequestValidationError) Cause() error
Cause function returns cause value.
func (SendRequestValidationError) Error ¶
func (e SendRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SendRequestValidationError) ErrorName ¶
func (e SendRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SendRequestValidationError) Field ¶
func (e SendRequestValidationError) Field() string
Field function returns field value.
func (SendRequestValidationError) Key ¶
func (e SendRequestValidationError) Key() bool
Key function returns key value.
func (SendRequestValidationError) Reason ¶
func (e SendRequestValidationError) Reason() string
Reason function returns reason value.
type SendResponse ¶
type SendResponse struct { Result *SendResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) GetResult ¶
func (x *SendResponse) GetResult() *SendResult
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string
func (*SendResponse) Validate ¶
func (m *SendResponse) Validate() error
Validate checks the field values on SendResponse 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 (*SendResponse) ValidateAll ¶
func (m *SendResponse) ValidateAll() error
ValidateAll checks the field values on SendResponse 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 SendResponseMultiError, or nil if none found.
type SendResponseMultiError ¶
type SendResponseMultiError []error
SendResponseMultiError is an error wrapping multiple validation errors returned by SendResponse.ValidateAll() if the designated constraints aren't met.
func (SendResponseMultiError) AllErrors ¶
func (m SendResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendResponseMultiError) Error ¶
func (m SendResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendResponseValidationError ¶
type SendResponseValidationError struct {
// contains filtered or unexported fields
}
SendResponseValidationError is the validation error returned by SendResponse.Validate if the designated constraints aren't met.
func (SendResponseValidationError) Cause ¶
func (e SendResponseValidationError) Cause() error
Cause function returns cause value.
func (SendResponseValidationError) Error ¶
func (e SendResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SendResponseValidationError) ErrorName ¶
func (e SendResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SendResponseValidationError) Field ¶
func (e SendResponseValidationError) Field() string
Field function returns field value.
func (SendResponseValidationError) Key ¶
func (e SendResponseValidationError) Key() bool
Key function returns key value.
func (SendResponseValidationError) Reason ¶
func (e SendResponseValidationError) Reason() string
Reason function returns reason value.
type SendResult ¶
type SendResult struct { NotificationId uint64 `protobuf:"varint,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"` Status SendStatus `protobuf:"varint,2,opt,name=status,proto3,enum=notification.v1.SendStatus" json:"status,omitempty"` ErrCode ErrCode `protobuf:"varint,3,opt,name=err_code,json=errCode,proto3,enum=notification.v1.ErrCode" json:"err_code,omitempty"` ErrMsg string `protobuf:"bytes,4,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` // contains filtered or unexported fields }
func (*SendResult) Descriptor
deprecated
func (*SendResult) Descriptor() ([]byte, []int)
Deprecated: Use SendResult.ProtoReflect.Descriptor instead.
func (*SendResult) GetErrCode ¶
func (x *SendResult) GetErrCode() ErrCode
func (*SendResult) GetErrMsg ¶
func (x *SendResult) GetErrMsg() string
func (*SendResult) GetNotificationId ¶
func (x *SendResult) GetNotificationId() uint64
func (*SendResult) GetStatus ¶
func (x *SendResult) GetStatus() SendStatus
func (*SendResult) ProtoMessage ¶
func (*SendResult) ProtoMessage()
func (*SendResult) ProtoReflect ¶
func (x *SendResult) ProtoReflect() protoreflect.Message
func (*SendResult) Reset ¶
func (x *SendResult) Reset()
func (*SendResult) String ¶
func (x *SendResult) String() string
func (*SendResult) Validate ¶
func (m *SendResult) Validate() error
Validate checks the field values on SendResult 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 (*SendResult) ValidateAll ¶
func (m *SendResult) ValidateAll() error
ValidateAll checks the field values on SendResult 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 SendResultMultiError, or nil if none found.
type SendResultMultiError ¶
type SendResultMultiError []error
SendResultMultiError is an error wrapping multiple validation errors returned by SendResult.ValidateAll() if the designated constraints aren't met.
func (SendResultMultiError) AllErrors ¶
func (m SendResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendResultMultiError) Error ¶
func (m SendResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendResultValidationError ¶
type SendResultValidationError struct {
// contains filtered or unexported fields
}
SendResultValidationError is the validation error returned by SendResult.Validate if the designated constraints aren't met.
func (SendResultValidationError) Cause ¶
func (e SendResultValidationError) Cause() error
Cause function returns cause value.
func (SendResultValidationError) Error ¶
func (e SendResultValidationError) Error() string
Error satisfies the builtin error interface
func (SendResultValidationError) ErrorName ¶
func (e SendResultValidationError) ErrorName() string
ErrorName returns error name.
func (SendResultValidationError) Field ¶
func (e SendResultValidationError) Field() string
Field function returns field value.
func (SendResultValidationError) Key ¶
func (e SendResultValidationError) Key() bool
Key function returns key value.
func (SendResultValidationError) Reason ¶
func (e SendResultValidationError) Reason() string
Reason function returns reason value.
type SendStatus ¶
type SendStatus int32
const ( SendStatus_STATUS_UNSPECIFIED SendStatus = 0 SendStatus_PREPARE SendStatus = 1 SendStatus_CANCEL SendStatus = 2 SendStatus_PENDING SendStatus = 3 SendStatus_SUCCESS SendStatus = 4 SendStatus_FAILURE SendStatus = 5 )
func (SendStatus) Descriptor ¶
func (SendStatus) Descriptor() protoreflect.EnumDescriptor
func (SendStatus) Enum ¶
func (x SendStatus) Enum() *SendStatus
func (SendStatus) EnumDescriptor
deprecated
func (SendStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SendStatus.Descriptor instead.
func (SendStatus) Number ¶
func (x SendStatus) Number() protoreflect.EnumNumber
func (SendStatus) String ¶
func (x SendStatus) String() string
func (SendStatus) Type ¶
func (SendStatus) Type() protoreflect.EnumType
type SendStrategy ¶
type SendStrategy struct { // Types that are valid to be assigned to StrategyType: // // *SendStrategy_Immediate // *SendStrategy_Delayed // *SendStrategy_Scheduled // *SendStrategy_TimeWindow // *SendStrategy_Deadline StrategyType isSendStrategy_StrategyType `protobuf_oneof:"strategy_type"` // contains filtered or unexported fields }
func (*SendStrategy) Descriptor
deprecated
func (*SendStrategy) Descriptor() ([]byte, []int)
Deprecated: Use SendStrategy.ProtoReflect.Descriptor instead.
func (*SendStrategy) GetDeadline ¶
func (x *SendStrategy) GetDeadline() *DeadlineStrategy
func (*SendStrategy) GetDelayed ¶
func (x *SendStrategy) GetDelayed() *DelayedStrategy
func (*SendStrategy) GetImmediate ¶
func (x *SendStrategy) GetImmediate() *ImmediatelyStrategy
func (*SendStrategy) GetScheduled ¶
func (x *SendStrategy) GetScheduled() *ScheduledStrategy
func (*SendStrategy) GetStrategyType ¶
func (x *SendStrategy) GetStrategyType() isSendStrategy_StrategyType
func (*SendStrategy) GetTimeWindow ¶
func (x *SendStrategy) GetTimeWindow() *TimeWindowStrategy
func (*SendStrategy) ProtoMessage ¶
func (*SendStrategy) ProtoMessage()
func (*SendStrategy) ProtoReflect ¶
func (x *SendStrategy) ProtoReflect() protoreflect.Message
func (*SendStrategy) Reset ¶
func (x *SendStrategy) Reset()
func (*SendStrategy) String ¶
func (x *SendStrategy) String() string
func (*SendStrategy) Validate ¶
func (m *SendStrategy) Validate() error
Validate checks the field values on SendStrategy 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 (*SendStrategy) ValidateAll ¶
func (m *SendStrategy) ValidateAll() error
ValidateAll checks the field values on SendStrategy 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 SendStrategyMultiError, or nil if none found.
type SendStrategyMultiError ¶
type SendStrategyMultiError []error
SendStrategyMultiError is an error wrapping multiple validation errors returned by SendStrategy.ValidateAll() if the designated constraints aren't met.
func (SendStrategyMultiError) AllErrors ¶
func (m SendStrategyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendStrategyMultiError) Error ¶
func (m SendStrategyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendStrategyValidationError ¶
type SendStrategyValidationError struct {
// contains filtered or unexported fields
}
SendStrategyValidationError is the validation error returned by SendStrategy.Validate if the designated constraints aren't met.
func (SendStrategyValidationError) Cause ¶
func (e SendStrategyValidationError) Cause() error
Cause function returns cause value.
func (SendStrategyValidationError) Error ¶
func (e SendStrategyValidationError) Error() string
Error satisfies the builtin error interface
func (SendStrategyValidationError) ErrorName ¶
func (e SendStrategyValidationError) ErrorName() string
ErrorName returns error name.
func (SendStrategyValidationError) Field ¶
func (e SendStrategyValidationError) Field() string
Field function returns field value.
func (SendStrategyValidationError) Key ¶
func (e SendStrategyValidationError) Key() bool
Key function returns key value.
func (SendStrategyValidationError) Reason ¶
func (e SendStrategyValidationError) Reason() string
Reason function returns reason value.
type SendStrategy_Deadline ¶
type SendStrategy_Deadline struct {
Deadline *DeadlineStrategy `protobuf:"bytes,5,opt,name=deadline,proto3,oneof"`
}
type SendStrategy_Delayed ¶
type SendStrategy_Delayed struct {
Delayed *DelayedStrategy `protobuf:"bytes,2,opt,name=delayed,proto3,oneof"`
}
type SendStrategy_Immediate ¶
type SendStrategy_Immediate struct {
Immediate *ImmediatelyStrategy `protobuf:"bytes,1,opt,name=immediate,proto3,oneof"`
}
type SendStrategy_Scheduled ¶
type SendStrategy_Scheduled struct {
Scheduled *ScheduledStrategy `protobuf:"bytes,3,opt,name=scheduled,proto3,oneof"`
}
type SendStrategy_TimeWindow ¶
type SendStrategy_TimeWindow struct {
TimeWindow *TimeWindowStrategy `protobuf:"bytes,4,opt,name=time_window,json=timeWindow,proto3,oneof"`
}
type TimeWindowStrategy ¶
type TimeWindowStrategy struct { StartTimeMillis int64 `protobuf:"varint,1,opt,name=start_time_millis,json=startTimeMillis,proto3" json:"start_time_millis,omitempty"` EndTimeMillis int64 `protobuf:"varint,2,opt,name=end_time_millis,json=endTimeMillis,proto3" json:"end_time_millis,omitempty"` // contains filtered or unexported fields }
func (*TimeWindowStrategy) Descriptor
deprecated
func (*TimeWindowStrategy) Descriptor() ([]byte, []int)
Deprecated: Use TimeWindowStrategy.ProtoReflect.Descriptor instead.
func (*TimeWindowStrategy) GetEndTimeMillis ¶
func (x *TimeWindowStrategy) GetEndTimeMillis() int64
func (*TimeWindowStrategy) GetStartTimeMillis ¶
func (x *TimeWindowStrategy) GetStartTimeMillis() int64
func (*TimeWindowStrategy) ProtoMessage ¶
func (*TimeWindowStrategy) ProtoMessage()
func (*TimeWindowStrategy) ProtoReflect ¶
func (x *TimeWindowStrategy) ProtoReflect() protoreflect.Message
func (*TimeWindowStrategy) Reset ¶
func (x *TimeWindowStrategy) Reset()
func (*TimeWindowStrategy) String ¶
func (x *TimeWindowStrategy) String() string
func (*TimeWindowStrategy) Validate ¶
func (m *TimeWindowStrategy) Validate() error
Validate checks the field values on TimeWindowStrategy 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 (*TimeWindowStrategy) ValidateAll ¶
func (m *TimeWindowStrategy) ValidateAll() error
ValidateAll checks the field values on TimeWindowStrategy 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 TimeWindowStrategyMultiError, or nil if none found.
type TimeWindowStrategyMultiError ¶
type TimeWindowStrategyMultiError []error
TimeWindowStrategyMultiError is an error wrapping multiple validation errors returned by TimeWindowStrategy.ValidateAll() if the designated constraints aren't met.
func (TimeWindowStrategyMultiError) AllErrors ¶
func (m TimeWindowStrategyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TimeWindowStrategyMultiError) Error ¶
func (m TimeWindowStrategyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TimeWindowStrategyValidationError ¶
type TimeWindowStrategyValidationError struct {
// contains filtered or unexported fields
}
TimeWindowStrategyValidationError is the validation error returned by TimeWindowStrategy.Validate if the designated constraints aren't met.
func (TimeWindowStrategyValidationError) Cause ¶
func (e TimeWindowStrategyValidationError) Cause() error
Cause function returns cause value.
func (TimeWindowStrategyValidationError) Error ¶
func (e TimeWindowStrategyValidationError) Error() string
Error satisfies the builtin error interface
func (TimeWindowStrategyValidationError) ErrorName ¶
func (e TimeWindowStrategyValidationError) ErrorName() string
ErrorName returns error name.
func (TimeWindowStrategyValidationError) Field ¶
func (e TimeWindowStrategyValidationError) Field() string
Field function returns field value.
func (TimeWindowStrategyValidationError) Key ¶
func (e TimeWindowStrategyValidationError) Key() bool
Key function returns key value.
func (TimeWindowStrategyValidationError) Reason ¶
func (e TimeWindowStrategyValidationError) Reason() string
Reason function returns reason value.
type TxCancelRequest ¶
type TxCancelRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*TxCancelRequest) Descriptor
deprecated
func (*TxCancelRequest) Descriptor() ([]byte, []int)
Deprecated: Use TxCancelRequest.ProtoReflect.Descriptor instead.
func (*TxCancelRequest) GetKey ¶
func (x *TxCancelRequest) GetKey() string
func (*TxCancelRequest) ProtoMessage ¶
func (*TxCancelRequest) ProtoMessage()
func (*TxCancelRequest) ProtoReflect ¶
func (x *TxCancelRequest) ProtoReflect() protoreflect.Message
func (*TxCancelRequest) Reset ¶
func (x *TxCancelRequest) Reset()
func (*TxCancelRequest) String ¶
func (x *TxCancelRequest) String() string
func (*TxCancelRequest) Validate ¶
func (m *TxCancelRequest) Validate() error
Validate checks the field values on TxCancelRequest 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 (*TxCancelRequest) ValidateAll ¶
func (m *TxCancelRequest) ValidateAll() error
ValidateAll checks the field values on TxCancelRequest 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 TxCancelRequestMultiError, or nil if none found.
type TxCancelRequestMultiError ¶
type TxCancelRequestMultiError []error
TxCancelRequestMultiError is an error wrapping multiple validation errors returned by TxCancelRequest.ValidateAll() if the designated constraints aren't met.
func (TxCancelRequestMultiError) AllErrors ¶
func (m TxCancelRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TxCancelRequestMultiError) Error ¶
func (m TxCancelRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TxCancelRequestValidationError ¶
type TxCancelRequestValidationError struct {
// contains filtered or unexported fields
}
TxCancelRequestValidationError is the validation error returned by TxCancelRequest.Validate if the designated constraints aren't met.
func (TxCancelRequestValidationError) Cause ¶
func (e TxCancelRequestValidationError) Cause() error
Cause function returns cause value.
func (TxCancelRequestValidationError) Error ¶
func (e TxCancelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TxCancelRequestValidationError) ErrorName ¶
func (e TxCancelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TxCancelRequestValidationError) Field ¶
func (e TxCancelRequestValidationError) Field() string
Field function returns field value.
func (TxCancelRequestValidationError) Key ¶
func (e TxCancelRequestValidationError) Key() bool
Key function returns key value.
func (TxCancelRequestValidationError) Reason ¶
func (e TxCancelRequestValidationError) Reason() string
Reason function returns reason value.
type TxCancelResponse ¶
type TxCancelResponse struct {
// contains filtered or unexported fields
}
func (*TxCancelResponse) Descriptor
deprecated
func (*TxCancelResponse) Descriptor() ([]byte, []int)
Deprecated: Use TxCancelResponse.ProtoReflect.Descriptor instead.
func (*TxCancelResponse) ProtoMessage ¶
func (*TxCancelResponse) ProtoMessage()
func (*TxCancelResponse) ProtoReflect ¶
func (x *TxCancelResponse) ProtoReflect() protoreflect.Message
func (*TxCancelResponse) Reset ¶
func (x *TxCancelResponse) Reset()
func (*TxCancelResponse) String ¶
func (x *TxCancelResponse) String() string
func (*TxCancelResponse) Validate ¶
func (m *TxCancelResponse) Validate() error
Validate checks the field values on TxCancelResponse 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 (*TxCancelResponse) ValidateAll ¶
func (m *TxCancelResponse) ValidateAll() error
ValidateAll checks the field values on TxCancelResponse 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 TxCancelResponseMultiError, or nil if none found.
type TxCancelResponseMultiError ¶
type TxCancelResponseMultiError []error
TxCancelResponseMultiError is an error wrapping multiple validation errors returned by TxCancelResponse.ValidateAll() if the designated constraints aren't met.
func (TxCancelResponseMultiError) AllErrors ¶
func (m TxCancelResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TxCancelResponseMultiError) Error ¶
func (m TxCancelResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TxCancelResponseValidationError ¶
type TxCancelResponseValidationError struct {
// contains filtered or unexported fields
}
TxCancelResponseValidationError is the validation error returned by TxCancelResponse.Validate if the designated constraints aren't met.
func (TxCancelResponseValidationError) Cause ¶
func (e TxCancelResponseValidationError) Cause() error
Cause function returns cause value.
func (TxCancelResponseValidationError) Error ¶
func (e TxCancelResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TxCancelResponseValidationError) ErrorName ¶
func (e TxCancelResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TxCancelResponseValidationError) Field ¶
func (e TxCancelResponseValidationError) Field() string
Field function returns field value.
func (TxCancelResponseValidationError) Key ¶
func (e TxCancelResponseValidationError) Key() bool
Key function returns key value.
func (TxCancelResponseValidationError) Reason ¶
func (e TxCancelResponseValidationError) Reason() string
Reason function returns reason value.
type TxCommitRequest ¶
type TxCommitRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*TxCommitRequest) Descriptor
deprecated
func (*TxCommitRequest) Descriptor() ([]byte, []int)
Deprecated: Use TxCommitRequest.ProtoReflect.Descriptor instead.
func (*TxCommitRequest) GetKey ¶
func (x *TxCommitRequest) GetKey() string
func (*TxCommitRequest) ProtoMessage ¶
func (*TxCommitRequest) ProtoMessage()
func (*TxCommitRequest) ProtoReflect ¶
func (x *TxCommitRequest) ProtoReflect() protoreflect.Message
func (*TxCommitRequest) Reset ¶
func (x *TxCommitRequest) Reset()
func (*TxCommitRequest) String ¶
func (x *TxCommitRequest) String() string
func (*TxCommitRequest) Validate ¶
func (m *TxCommitRequest) Validate() error
Validate checks the field values on TxCommitRequest 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 (*TxCommitRequest) ValidateAll ¶
func (m *TxCommitRequest) ValidateAll() error
ValidateAll checks the field values on TxCommitRequest 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 TxCommitRequestMultiError, or nil if none found.
type TxCommitRequestMultiError ¶
type TxCommitRequestMultiError []error
TxCommitRequestMultiError is an error wrapping multiple validation errors returned by TxCommitRequest.ValidateAll() if the designated constraints aren't met.
func (TxCommitRequestMultiError) AllErrors ¶
func (m TxCommitRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TxCommitRequestMultiError) Error ¶
func (m TxCommitRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TxCommitRequestValidationError ¶
type TxCommitRequestValidationError struct {
// contains filtered or unexported fields
}
TxCommitRequestValidationError is the validation error returned by TxCommitRequest.Validate if the designated constraints aren't met.
func (TxCommitRequestValidationError) Cause ¶
func (e TxCommitRequestValidationError) Cause() error
Cause function returns cause value.
func (TxCommitRequestValidationError) Error ¶
func (e TxCommitRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TxCommitRequestValidationError) ErrorName ¶
func (e TxCommitRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TxCommitRequestValidationError) Field ¶
func (e TxCommitRequestValidationError) Field() string
Field function returns field value.
func (TxCommitRequestValidationError) Key ¶
func (e TxCommitRequestValidationError) Key() bool
Key function returns key value.
func (TxCommitRequestValidationError) Reason ¶
func (e TxCommitRequestValidationError) Reason() string
Reason function returns reason value.
type TxCommitResponse ¶
type TxCommitResponse struct {
// contains filtered or unexported fields
}
func (*TxCommitResponse) Descriptor
deprecated
func (*TxCommitResponse) Descriptor() ([]byte, []int)
Deprecated: Use TxCommitResponse.ProtoReflect.Descriptor instead.
func (*TxCommitResponse) ProtoMessage ¶
func (*TxCommitResponse) ProtoMessage()
func (*TxCommitResponse) ProtoReflect ¶
func (x *TxCommitResponse) ProtoReflect() protoreflect.Message
func (*TxCommitResponse) Reset ¶
func (x *TxCommitResponse) Reset()
func (*TxCommitResponse) String ¶
func (x *TxCommitResponse) String() string
func (*TxCommitResponse) Validate ¶
func (m *TxCommitResponse) Validate() error
Validate checks the field values on TxCommitResponse 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 (*TxCommitResponse) ValidateAll ¶
func (m *TxCommitResponse) ValidateAll() error
ValidateAll checks the field values on TxCommitResponse 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 TxCommitResponseMultiError, or nil if none found.
type TxCommitResponseMultiError ¶
type TxCommitResponseMultiError []error
TxCommitResponseMultiError is an error wrapping multiple validation errors returned by TxCommitResponse.ValidateAll() if the designated constraints aren't met.
func (TxCommitResponseMultiError) AllErrors ¶
func (m TxCommitResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TxCommitResponseMultiError) Error ¶
func (m TxCommitResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TxCommitResponseValidationError ¶
type TxCommitResponseValidationError struct {
// contains filtered or unexported fields
}
TxCommitResponseValidationError is the validation error returned by TxCommitResponse.Validate if the designated constraints aren't met.
func (TxCommitResponseValidationError) Cause ¶
func (e TxCommitResponseValidationError) Cause() error
Cause function returns cause value.
func (TxCommitResponseValidationError) Error ¶
func (e TxCommitResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TxCommitResponseValidationError) ErrorName ¶
func (e TxCommitResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TxCommitResponseValidationError) Field ¶
func (e TxCommitResponseValidationError) Field() string
Field function returns field value.
func (TxCommitResponseValidationError) Key ¶
func (e TxCommitResponseValidationError) Key() bool
Key function returns key value.
func (TxCommitResponseValidationError) Reason ¶
func (e TxCommitResponseValidationError) Reason() string
Reason function returns reason value.
type TxPrepareRequest ¶
type TxPrepareRequest struct { Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"` // contains filtered or unexported fields }
func (*TxPrepareRequest) Descriptor
deprecated
func (*TxPrepareRequest) Descriptor() ([]byte, []int)
Deprecated: Use TxPrepareRequest.ProtoReflect.Descriptor instead.
func (*TxPrepareRequest) GetNotification ¶
func (x *TxPrepareRequest) GetNotification() *Notification
func (*TxPrepareRequest) ProtoMessage ¶
func (*TxPrepareRequest) ProtoMessage()
func (*TxPrepareRequest) ProtoReflect ¶
func (x *TxPrepareRequest) ProtoReflect() protoreflect.Message
func (*TxPrepareRequest) Reset ¶
func (x *TxPrepareRequest) Reset()
func (*TxPrepareRequest) String ¶
func (x *TxPrepareRequest) String() string
func (*TxPrepareRequest) Validate ¶
func (m *TxPrepareRequest) Validate() error
Validate checks the field values on TxPrepareRequest 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 (*TxPrepareRequest) ValidateAll ¶
func (m *TxPrepareRequest) ValidateAll() error
ValidateAll checks the field values on TxPrepareRequest 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 TxPrepareRequestMultiError, or nil if none found.
type TxPrepareRequestMultiError ¶
type TxPrepareRequestMultiError []error
TxPrepareRequestMultiError is an error wrapping multiple validation errors returned by TxPrepareRequest.ValidateAll() if the designated constraints aren't met.
func (TxPrepareRequestMultiError) AllErrors ¶
func (m TxPrepareRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TxPrepareRequestMultiError) Error ¶
func (m TxPrepareRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TxPrepareRequestValidationError ¶
type TxPrepareRequestValidationError struct {
// contains filtered or unexported fields
}
TxPrepareRequestValidationError is the validation error returned by TxPrepareRequest.Validate if the designated constraints aren't met.
func (TxPrepareRequestValidationError) Cause ¶
func (e TxPrepareRequestValidationError) Cause() error
Cause function returns cause value.
func (TxPrepareRequestValidationError) Error ¶
func (e TxPrepareRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TxPrepareRequestValidationError) ErrorName ¶
func (e TxPrepareRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TxPrepareRequestValidationError) Field ¶
func (e TxPrepareRequestValidationError) Field() string
Field function returns field value.
func (TxPrepareRequestValidationError) Key ¶
func (e TxPrepareRequestValidationError) Key() bool
Key function returns key value.
func (TxPrepareRequestValidationError) Reason ¶
func (e TxPrepareRequestValidationError) Reason() string
Reason function returns reason value.
type TxPrepareResponse ¶
type TxPrepareResponse struct {
// contains filtered or unexported fields
}
func (*TxPrepareResponse) Descriptor
deprecated
func (*TxPrepareResponse) Descriptor() ([]byte, []int)
Deprecated: Use TxPrepareResponse.ProtoReflect.Descriptor instead.
func (*TxPrepareResponse) ProtoMessage ¶
func (*TxPrepareResponse) ProtoMessage()
func (*TxPrepareResponse) ProtoReflect ¶
func (x *TxPrepareResponse) ProtoReflect() protoreflect.Message
func (*TxPrepareResponse) Reset ¶
func (x *TxPrepareResponse) Reset()
func (*TxPrepareResponse) String ¶
func (x *TxPrepareResponse) String() string
func (*TxPrepareResponse) Validate ¶
func (m *TxPrepareResponse) Validate() error
Validate checks the field values on TxPrepareResponse 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 (*TxPrepareResponse) ValidateAll ¶
func (m *TxPrepareResponse) ValidateAll() error
ValidateAll checks the field values on TxPrepareResponse 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 TxPrepareResponseMultiError, or nil if none found.
type TxPrepareResponseMultiError ¶
type TxPrepareResponseMultiError []error
TxPrepareResponseMultiError is an error wrapping multiple validation errors returned by TxPrepareResponse.ValidateAll() if the designated constraints aren't met.
func (TxPrepareResponseMultiError) AllErrors ¶
func (m TxPrepareResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TxPrepareResponseMultiError) Error ¶
func (m TxPrepareResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TxPrepareResponseValidationError ¶
type TxPrepareResponseValidationError struct {
// contains filtered or unexported fields
}
TxPrepareResponseValidationError is the validation error returned by TxPrepareResponse.Validate if the designated constraints aren't met.
func (TxPrepareResponseValidationError) Cause ¶
func (e TxPrepareResponseValidationError) Cause() error
Cause function returns cause value.
func (TxPrepareResponseValidationError) Error ¶
func (e TxPrepareResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TxPrepareResponseValidationError) ErrorName ¶
func (e TxPrepareResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TxPrepareResponseValidationError) Field ¶
func (e TxPrepareResponseValidationError) Field() string
Field function returns field value.
func (TxPrepareResponseValidationError) Key ¶
func (e TxPrepareResponseValidationError) Key() bool
Key function returns key value.
func (TxPrepareResponseValidationError) Reason ¶
func (e TxPrepareResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedNotificationQueryServiceServer ¶
type UnimplementedNotificationQueryServiceServer struct{}
UnimplementedNotificationQueryServiceServer should 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 (UnimplementedNotificationQueryServiceServer) Batch ¶
func (UnimplementedNotificationQueryServiceServer) Batch(context.Context, *BatchRequest) (*BatchResponse, error)
func (UnimplementedNotificationQueryServiceServer) Query ¶
func (UnimplementedNotificationQueryServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error)
type UnimplementedNotificationServiceServer ¶
type UnimplementedNotificationServiceServer struct{}
UnimplementedNotificationServiceServer should 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 (UnimplementedNotificationServiceServer) AsyncBatchSend ¶
func (UnimplementedNotificationServiceServer) AsyncBatchSend(context.Context, *AsyncBatchSendRequest) (*AsyncBatchSendResponse, error)
func (UnimplementedNotificationServiceServer) AsyncSend ¶
func (UnimplementedNotificationServiceServer) AsyncSend(context.Context, *AsyncSendRequest) (*AsyncSendResponse, error)
func (UnimplementedNotificationServiceServer) BatchSend ¶
func (UnimplementedNotificationServiceServer) BatchSend(context.Context, *BatchSendRequest) (*BatchSendResponse, error)
func (UnimplementedNotificationServiceServer) Send ¶
func (UnimplementedNotificationServiceServer) Send(context.Context, *SendRequest) (*SendResponse, error)
func (UnimplementedNotificationServiceServer) TxCancel ¶
func (UnimplementedNotificationServiceServer) TxCancel(context.Context, *TxCancelRequest) (*TxCancelResponse, error)
func (UnimplementedNotificationServiceServer) TxCommit ¶
func (UnimplementedNotificationServiceServer) TxCommit(context.Context, *TxCommitRequest) (*TxCommitResponse, error)
func (UnimplementedNotificationServiceServer) TxPrepare ¶
func (UnimplementedNotificationServiceServer) TxPrepare(context.Context, *TxPrepareRequest) (*TxPrepareResponse, error)
type UnsafeNotificationQueryServiceServer ¶
type UnsafeNotificationQueryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNotificationQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificationQueryServiceServer will result in compilation errors.
type UnsafeNotificationServiceServer ¶
type UnsafeNotificationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNotificationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificationServiceServer will result in compilation errors.