Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPushServer(s grpc.ServiceRegistrar, srv PushServer)
- type AddTokenRequest
- func (*AddTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddTokenRequest) GetAppInstall() *v1.AppInstallId
- func (x *AddTokenRequest) GetAuth() *v1.Auth
- func (x *AddTokenRequest) GetPushToken() string
- func (x *AddTokenRequest) GetTokenType() TokenType
- func (*AddTokenRequest) ProtoMessage()
- func (x *AddTokenRequest) ProtoReflect() protoreflect.Message
- func (x *AddTokenRequest) Reset()
- func (x *AddTokenRequest) String() string
- func (m *AddTokenRequest) Validate() error
- func (m *AddTokenRequest) ValidateAll() error
- type AddTokenRequestMultiError
- type AddTokenRequestValidationError
- func (e AddTokenRequestValidationError) Cause() error
- func (e AddTokenRequestValidationError) Error() string
- func (e AddTokenRequestValidationError) ErrorName() string
- func (e AddTokenRequestValidationError) Field() string
- func (e AddTokenRequestValidationError) Key() bool
- func (e AddTokenRequestValidationError) Reason() string
- type AddTokenResponse
- func (*AddTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddTokenResponse) GetResult() AddTokenResponse_Result
- func (*AddTokenResponse) ProtoMessage()
- func (x *AddTokenResponse) ProtoReflect() protoreflect.Message
- func (x *AddTokenResponse) Reset()
- func (x *AddTokenResponse) String() string
- func (m *AddTokenResponse) Validate() error
- func (m *AddTokenResponse) ValidateAll() error
- type AddTokenResponseMultiError
- type AddTokenResponseValidationError
- func (e AddTokenResponseValidationError) Cause() error
- func (e AddTokenResponseValidationError) Error() string
- func (e AddTokenResponseValidationError) ErrorName() string
- func (e AddTokenResponseValidationError) Field() string
- func (e AddTokenResponseValidationError) Key() bool
- func (e AddTokenResponseValidationError) Reason() string
- type AddTokenResponse_Result
- func (AddTokenResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x AddTokenResponse_Result) Enum() *AddTokenResponse_Result
- func (AddTokenResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddTokenResponse_Result) Number() protoreflect.EnumNumber
- func (x AddTokenResponse_Result) String() string
- func (AddTokenResponse_Result) Type() protoreflect.EnumType
- type DeleteTokenRequest
- func (*DeleteTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTokenRequest) GetAuth() *v1.Auth
- func (x *DeleteTokenRequest) GetPushToken() string
- func (x *DeleteTokenRequest) GetTokenType() TokenType
- func (*DeleteTokenRequest) ProtoMessage()
- func (x *DeleteTokenRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTokenRequest) Reset()
- func (x *DeleteTokenRequest) String() string
- func (m *DeleteTokenRequest) Validate() error
- func (m *DeleteTokenRequest) ValidateAll() error
- type DeleteTokenRequestMultiError
- type DeleteTokenRequestValidationError
- func (e DeleteTokenRequestValidationError) Cause() error
- func (e DeleteTokenRequestValidationError) Error() string
- func (e DeleteTokenRequestValidationError) ErrorName() string
- func (e DeleteTokenRequestValidationError) Field() string
- func (e DeleteTokenRequestValidationError) Key() bool
- func (e DeleteTokenRequestValidationError) Reason() string
- type DeleteTokenResponse
- func (*DeleteTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTokenResponse) GetResult() DeleteTokenResponse_Result
- func (*DeleteTokenResponse) ProtoMessage()
- func (x *DeleteTokenResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteTokenResponse) Reset()
- func (x *DeleteTokenResponse) String() string
- func (m *DeleteTokenResponse) Validate() error
- func (m *DeleteTokenResponse) ValidateAll() error
- type DeleteTokenResponseMultiError
- type DeleteTokenResponseValidationError
- func (e DeleteTokenResponseValidationError) Cause() error
- func (e DeleteTokenResponseValidationError) Error() string
- func (e DeleteTokenResponseValidationError) ErrorName() string
- func (e DeleteTokenResponseValidationError) Field() string
- func (e DeleteTokenResponseValidationError) Key() bool
- func (e DeleteTokenResponseValidationError) Reason() string
- type DeleteTokenResponse_Result
- func (DeleteTokenResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x DeleteTokenResponse_Result) Enum() *DeleteTokenResponse_Result
- func (DeleteTokenResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeleteTokenResponse_Result) Number() protoreflect.EnumNumber
- func (x DeleteTokenResponse_Result) String() string
- func (DeleteTokenResponse_Result) Type() protoreflect.EnumType
- type DeleteTokensRequest
- func (*DeleteTokensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTokensRequest) GetAppInstall() *v1.AppInstallId
- func (x *DeleteTokensRequest) GetAuth() *v1.Auth
- func (*DeleteTokensRequest) ProtoMessage()
- func (x *DeleteTokensRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTokensRequest) Reset()
- func (x *DeleteTokensRequest) String() string
- func (m *DeleteTokensRequest) Validate() error
- func (m *DeleteTokensRequest) ValidateAll() error
- type DeleteTokensRequestMultiError
- type DeleteTokensRequestValidationError
- func (e DeleteTokensRequestValidationError) Cause() error
- func (e DeleteTokensRequestValidationError) Error() string
- func (e DeleteTokensRequestValidationError) ErrorName() string
- func (e DeleteTokensRequestValidationError) Field() string
- func (e DeleteTokensRequestValidationError) Key() bool
- func (e DeleteTokensRequestValidationError) Reason() string
- type DeleteTokensResponse
- func (*DeleteTokensResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTokensResponse) GetResult() DeleteTokensResponse_Result
- func (*DeleteTokensResponse) ProtoMessage()
- func (x *DeleteTokensResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteTokensResponse) Reset()
- func (x *DeleteTokensResponse) String() string
- func (m *DeleteTokensResponse) Validate() error
- func (m *DeleteTokensResponse) ValidateAll() error
- type DeleteTokensResponseMultiError
- type DeleteTokensResponseValidationError
- func (e DeleteTokensResponseValidationError) Cause() error
- func (e DeleteTokensResponseValidationError) Error() string
- func (e DeleteTokensResponseValidationError) ErrorName() string
- func (e DeleteTokensResponseValidationError) Field() string
- func (e DeleteTokensResponseValidationError) Key() bool
- func (e DeleteTokensResponseValidationError) Reason() string
- type DeleteTokensResponse_Result
- func (DeleteTokensResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x DeleteTokensResponse_Result) Enum() *DeleteTokensResponse_Result
- func (DeleteTokensResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeleteTokensResponse_Result) Number() protoreflect.EnumNumber
- func (x DeleteTokensResponse_Result) String() string
- func (DeleteTokensResponse_Result) Type() protoreflect.EnumType
- type PushClient
- type PushServer
- type TokenType
- type UnimplementedPushServer
- func (UnimplementedPushServer) AddToken(context.Context, *AddTokenRequest) (*AddTokenResponse, error)
- func (UnimplementedPushServer) DeleteToken(context.Context, *DeleteTokenRequest) (*DeleteTokenResponse, error)
- func (UnimplementedPushServer) DeleteTokens(context.Context, *DeleteTokensRequest) (*DeleteTokensResponse, error)
- type UnsafePushServer
Constants ¶
const ( Push_AddToken_FullMethodName = "/flipchat.push.v1.Push/AddToken" Push_DeleteToken_FullMethodName = "/flipchat.push.v1.Push/DeleteToken" Push_DeleteTokens_FullMethodName = "/flipchat.push.v1.Push/DeleteTokens" )
Variables ¶
var ( TokenType_name = map[int32]string{ 0: "UNKNOWN", 1: "FCM_ANDROID", 2: "FCM_APNS", } TokenType_value = map[string]int32{ "UNKNOWN": 0, "FCM_ANDROID": 1, "FCM_APNS": 2, } )
Enum value maps for TokenType.
var ( AddTokenResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_PUSH_TOKEN", } AddTokenResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_PUSH_TOKEN": 1, } )
Enum value maps for AddTokenResponse_Result.
var ( DeleteTokenResponse_Result_name = map[int32]string{ 0: "OK", } DeleteTokenResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for DeleteTokenResponse_Result.
var ( DeleteTokensResponse_Result_name = map[int32]string{ 0: "OK", } DeleteTokensResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for DeleteTokensResponse_Result.
var File_push_v1_push_service_proto protoreflect.FileDescriptor
var Push_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipchat.push.v1.Push", HandlerType: (*PushServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddToken", Handler: _Push_AddToken_Handler, }, { MethodName: "DeleteToken", Handler: _Push_DeleteToken_Handler, }, { MethodName: "DeleteTokens", Handler: _Push_DeleteTokens_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "push/v1/push_service.proto", }
Push_ServiceDesc is the grpc.ServiceDesc for Push service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPushServer ¶
func RegisterPushServer(s grpc.ServiceRegistrar, srv PushServer)
Types ¶
type AddTokenRequest ¶
type AddTokenRequest struct { TokenType TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=flipchat.push.v1.TokenType" json:"token_type,omitempty"` PushToken string `protobuf:"bytes,2,opt,name=push_token,json=pushToken,proto3" json:"push_token,omitempty"` AppInstall *v1.AppInstallId `protobuf:"bytes,3,opt,name=app_install,json=appInstall,proto3" json:"app_install,omitempty"` Auth *v1.Auth `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*AddTokenRequest) Descriptor
deprecated
func (*AddTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddTokenRequest.ProtoReflect.Descriptor instead.
func (*AddTokenRequest) GetAppInstall ¶
func (x *AddTokenRequest) GetAppInstall() *v1.AppInstallId
func (*AddTokenRequest) GetAuth ¶
func (x *AddTokenRequest) GetAuth() *v1.Auth
func (*AddTokenRequest) GetPushToken ¶
func (x *AddTokenRequest) GetPushToken() string
func (*AddTokenRequest) GetTokenType ¶
func (x *AddTokenRequest) GetTokenType() TokenType
func (*AddTokenRequest) ProtoMessage ¶
func (*AddTokenRequest) ProtoMessage()
func (*AddTokenRequest) ProtoReflect ¶
func (x *AddTokenRequest) ProtoReflect() protoreflect.Message
func (*AddTokenRequest) Reset ¶
func (x *AddTokenRequest) Reset()
func (*AddTokenRequest) String ¶
func (x *AddTokenRequest) String() string
func (*AddTokenRequest) Validate ¶
func (m *AddTokenRequest) Validate() error
Validate checks the field values on AddTokenRequest 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 (*AddTokenRequest) ValidateAll ¶
func (m *AddTokenRequest) ValidateAll() error
ValidateAll checks the field values on AddTokenRequest 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 AddTokenRequestMultiError, or nil if none found.
type AddTokenRequestMultiError ¶
type AddTokenRequestMultiError []error
AddTokenRequestMultiError is an error wrapping multiple validation errors returned by AddTokenRequest.ValidateAll() if the designated constraints aren't met.
func (AddTokenRequestMultiError) AllErrors ¶
func (m AddTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddTokenRequestMultiError) Error ¶
func (m AddTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddTokenRequestValidationError ¶
type AddTokenRequestValidationError struct {
// contains filtered or unexported fields
}
AddTokenRequestValidationError is the validation error returned by AddTokenRequest.Validate if the designated constraints aren't met.
func (AddTokenRequestValidationError) Cause ¶
func (e AddTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (AddTokenRequestValidationError) Error ¶
func (e AddTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddTokenRequestValidationError) ErrorName ¶
func (e AddTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddTokenRequestValidationError) Field ¶
func (e AddTokenRequestValidationError) Field() string
Field function returns field value.
func (AddTokenRequestValidationError) Key ¶
func (e AddTokenRequestValidationError) Key() bool
Key function returns key value.
func (AddTokenRequestValidationError) Reason ¶
func (e AddTokenRequestValidationError) Reason() string
Reason function returns reason value.
type AddTokenResponse ¶
type AddTokenResponse struct { Result AddTokenResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.push.v1.AddTokenResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*AddTokenResponse) Descriptor
deprecated
func (*AddTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddTokenResponse.ProtoReflect.Descriptor instead.
func (*AddTokenResponse) GetResult ¶
func (x *AddTokenResponse) GetResult() AddTokenResponse_Result
func (*AddTokenResponse) ProtoMessage ¶
func (*AddTokenResponse) ProtoMessage()
func (*AddTokenResponse) ProtoReflect ¶
func (x *AddTokenResponse) ProtoReflect() protoreflect.Message
func (*AddTokenResponse) Reset ¶
func (x *AddTokenResponse) Reset()
func (*AddTokenResponse) String ¶
func (x *AddTokenResponse) String() string
func (*AddTokenResponse) Validate ¶
func (m *AddTokenResponse) Validate() error
Validate checks the field values on AddTokenResponse 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 (*AddTokenResponse) ValidateAll ¶
func (m *AddTokenResponse) ValidateAll() error
ValidateAll checks the field values on AddTokenResponse 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 AddTokenResponseMultiError, or nil if none found.
type AddTokenResponseMultiError ¶
type AddTokenResponseMultiError []error
AddTokenResponseMultiError is an error wrapping multiple validation errors returned by AddTokenResponse.ValidateAll() if the designated constraints aren't met.
func (AddTokenResponseMultiError) AllErrors ¶
func (m AddTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddTokenResponseMultiError) Error ¶
func (m AddTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddTokenResponseValidationError ¶
type AddTokenResponseValidationError struct {
// contains filtered or unexported fields
}
AddTokenResponseValidationError is the validation error returned by AddTokenResponse.Validate if the designated constraints aren't met.
func (AddTokenResponseValidationError) Cause ¶
func (e AddTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (AddTokenResponseValidationError) Error ¶
func (e AddTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AddTokenResponseValidationError) ErrorName ¶
func (e AddTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AddTokenResponseValidationError) Field ¶
func (e AddTokenResponseValidationError) Field() string
Field function returns field value.
func (AddTokenResponseValidationError) Key ¶
func (e AddTokenResponseValidationError) Key() bool
Key function returns key value.
func (AddTokenResponseValidationError) Reason ¶
func (e AddTokenResponseValidationError) Reason() string
Reason function returns reason value.
type AddTokenResponse_Result ¶
type AddTokenResponse_Result int32
const ( AddTokenResponse_OK AddTokenResponse_Result = 0 AddTokenResponse_INVALID_PUSH_TOKEN AddTokenResponse_Result = 1 )
func (AddTokenResponse_Result) Descriptor ¶
func (AddTokenResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (AddTokenResponse_Result) Enum ¶
func (x AddTokenResponse_Result) Enum() *AddTokenResponse_Result
func (AddTokenResponse_Result) EnumDescriptor
deprecated
func (AddTokenResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddTokenResponse_Result.Descriptor instead.
func (AddTokenResponse_Result) Number ¶
func (x AddTokenResponse_Result) Number() protoreflect.EnumNumber
func (AddTokenResponse_Result) String ¶
func (x AddTokenResponse_Result) String() string
func (AddTokenResponse_Result) Type ¶
func (AddTokenResponse_Result) Type() protoreflect.EnumType
type DeleteTokenRequest ¶
type DeleteTokenRequest struct { TokenType TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=flipchat.push.v1.TokenType" json:"token_type,omitempty"` PushToken string `protobuf:"bytes,2,opt,name=push_token,json=pushToken,proto3" json:"push_token,omitempty"` Auth *v1.Auth `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*DeleteTokenRequest) Descriptor
deprecated
func (*DeleteTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTokenRequest.ProtoReflect.Descriptor instead.
func (*DeleteTokenRequest) GetAuth ¶
func (x *DeleteTokenRequest) GetAuth() *v1.Auth
func (*DeleteTokenRequest) GetPushToken ¶
func (x *DeleteTokenRequest) GetPushToken() string
func (*DeleteTokenRequest) GetTokenType ¶
func (x *DeleteTokenRequest) GetTokenType() TokenType
func (*DeleteTokenRequest) ProtoMessage ¶
func (*DeleteTokenRequest) ProtoMessage()
func (*DeleteTokenRequest) ProtoReflect ¶
func (x *DeleteTokenRequest) ProtoReflect() protoreflect.Message
func (*DeleteTokenRequest) Reset ¶
func (x *DeleteTokenRequest) Reset()
func (*DeleteTokenRequest) String ¶
func (x *DeleteTokenRequest) String() string
func (*DeleteTokenRequest) Validate ¶
func (m *DeleteTokenRequest) Validate() error
Validate checks the field values on DeleteTokenRequest 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 (*DeleteTokenRequest) ValidateAll ¶
func (m *DeleteTokenRequest) ValidateAll() error
ValidateAll checks the field values on DeleteTokenRequest 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 DeleteTokenRequestMultiError, or nil if none found.
type DeleteTokenRequestMultiError ¶
type DeleteTokenRequestMultiError []error
DeleteTokenRequestMultiError is an error wrapping multiple validation errors returned by DeleteTokenRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteTokenRequestMultiError) AllErrors ¶
func (m DeleteTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTokenRequestMultiError) Error ¶
func (m DeleteTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTokenRequestValidationError ¶
type DeleteTokenRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteTokenRequestValidationError is the validation error returned by DeleteTokenRequest.Validate if the designated constraints aren't met.
func (DeleteTokenRequestValidationError) Cause ¶
func (e DeleteTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteTokenRequestValidationError) Error ¶
func (e DeleteTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTokenRequestValidationError) ErrorName ¶
func (e DeleteTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTokenRequestValidationError) Field ¶
func (e DeleteTokenRequestValidationError) Field() string
Field function returns field value.
func (DeleteTokenRequestValidationError) Key ¶
func (e DeleteTokenRequestValidationError) Key() bool
Key function returns key value.
func (DeleteTokenRequestValidationError) Reason ¶
func (e DeleteTokenRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteTokenResponse ¶
type DeleteTokenResponse struct { Result DeleteTokenResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.push.v1.DeleteTokenResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*DeleteTokenResponse) Descriptor
deprecated
func (*DeleteTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTokenResponse.ProtoReflect.Descriptor instead.
func (*DeleteTokenResponse) GetResult ¶
func (x *DeleteTokenResponse) GetResult() DeleteTokenResponse_Result
func (*DeleteTokenResponse) ProtoMessage ¶
func (*DeleteTokenResponse) ProtoMessage()
func (*DeleteTokenResponse) ProtoReflect ¶
func (x *DeleteTokenResponse) ProtoReflect() protoreflect.Message
func (*DeleteTokenResponse) Reset ¶
func (x *DeleteTokenResponse) Reset()
func (*DeleteTokenResponse) String ¶
func (x *DeleteTokenResponse) String() string
func (*DeleteTokenResponse) Validate ¶
func (m *DeleteTokenResponse) Validate() error
Validate checks the field values on DeleteTokenResponse 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 (*DeleteTokenResponse) ValidateAll ¶
func (m *DeleteTokenResponse) ValidateAll() error
ValidateAll checks the field values on DeleteTokenResponse 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 DeleteTokenResponseMultiError, or nil if none found.
type DeleteTokenResponseMultiError ¶
type DeleteTokenResponseMultiError []error
DeleteTokenResponseMultiError is an error wrapping multiple validation errors returned by DeleteTokenResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteTokenResponseMultiError) AllErrors ¶
func (m DeleteTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTokenResponseMultiError) Error ¶
func (m DeleteTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTokenResponseValidationError ¶
type DeleteTokenResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteTokenResponseValidationError is the validation error returned by DeleteTokenResponse.Validate if the designated constraints aren't met.
func (DeleteTokenResponseValidationError) Cause ¶
func (e DeleteTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteTokenResponseValidationError) Error ¶
func (e DeleteTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTokenResponseValidationError) ErrorName ¶
func (e DeleteTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTokenResponseValidationError) Field ¶
func (e DeleteTokenResponseValidationError) Field() string
Field function returns field value.
func (DeleteTokenResponseValidationError) Key ¶
func (e DeleteTokenResponseValidationError) Key() bool
Key function returns key value.
func (DeleteTokenResponseValidationError) Reason ¶
func (e DeleteTokenResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteTokenResponse_Result ¶
type DeleteTokenResponse_Result int32
const (
DeleteTokenResponse_OK DeleteTokenResponse_Result = 0
)
func (DeleteTokenResponse_Result) Descriptor ¶
func (DeleteTokenResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (DeleteTokenResponse_Result) Enum ¶
func (x DeleteTokenResponse_Result) Enum() *DeleteTokenResponse_Result
func (DeleteTokenResponse_Result) EnumDescriptor
deprecated
func (DeleteTokenResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeleteTokenResponse_Result.Descriptor instead.
func (DeleteTokenResponse_Result) Number ¶
func (x DeleteTokenResponse_Result) Number() protoreflect.EnumNumber
func (DeleteTokenResponse_Result) String ¶
func (x DeleteTokenResponse_Result) String() string
func (DeleteTokenResponse_Result) Type ¶
func (DeleteTokenResponse_Result) Type() protoreflect.EnumType
type DeleteTokensRequest ¶
type DeleteTokensRequest struct { AppInstall *v1.AppInstallId `protobuf:"bytes,1,opt,name=app_install,json=appInstall,proto3" json:"app_install,omitempty"` Auth *v1.Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*DeleteTokensRequest) Descriptor
deprecated
func (*DeleteTokensRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTokensRequest.ProtoReflect.Descriptor instead.
func (*DeleteTokensRequest) GetAppInstall ¶
func (x *DeleteTokensRequest) GetAppInstall() *v1.AppInstallId
func (*DeleteTokensRequest) GetAuth ¶
func (x *DeleteTokensRequest) GetAuth() *v1.Auth
func (*DeleteTokensRequest) ProtoMessage ¶
func (*DeleteTokensRequest) ProtoMessage()
func (*DeleteTokensRequest) ProtoReflect ¶
func (x *DeleteTokensRequest) ProtoReflect() protoreflect.Message
func (*DeleteTokensRequest) Reset ¶
func (x *DeleteTokensRequest) Reset()
func (*DeleteTokensRequest) String ¶
func (x *DeleteTokensRequest) String() string
func (*DeleteTokensRequest) Validate ¶
func (m *DeleteTokensRequest) Validate() error
Validate checks the field values on DeleteTokensRequest 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 (*DeleteTokensRequest) ValidateAll ¶
func (m *DeleteTokensRequest) ValidateAll() error
ValidateAll checks the field values on DeleteTokensRequest 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 DeleteTokensRequestMultiError, or nil if none found.
type DeleteTokensRequestMultiError ¶
type DeleteTokensRequestMultiError []error
DeleteTokensRequestMultiError is an error wrapping multiple validation errors returned by DeleteTokensRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteTokensRequestMultiError) AllErrors ¶
func (m DeleteTokensRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTokensRequestMultiError) Error ¶
func (m DeleteTokensRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTokensRequestValidationError ¶
type DeleteTokensRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteTokensRequestValidationError is the validation error returned by DeleteTokensRequest.Validate if the designated constraints aren't met.
func (DeleteTokensRequestValidationError) Cause ¶
func (e DeleteTokensRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteTokensRequestValidationError) Error ¶
func (e DeleteTokensRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTokensRequestValidationError) ErrorName ¶
func (e DeleteTokensRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTokensRequestValidationError) Field ¶
func (e DeleteTokensRequestValidationError) Field() string
Field function returns field value.
func (DeleteTokensRequestValidationError) Key ¶
func (e DeleteTokensRequestValidationError) Key() bool
Key function returns key value.
func (DeleteTokensRequestValidationError) Reason ¶
func (e DeleteTokensRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteTokensResponse ¶
type DeleteTokensResponse struct { Result DeleteTokensResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.push.v1.DeleteTokensResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*DeleteTokensResponse) Descriptor
deprecated
func (*DeleteTokensResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTokensResponse.ProtoReflect.Descriptor instead.
func (*DeleteTokensResponse) GetResult ¶
func (x *DeleteTokensResponse) GetResult() DeleteTokensResponse_Result
func (*DeleteTokensResponse) ProtoMessage ¶
func (*DeleteTokensResponse) ProtoMessage()
func (*DeleteTokensResponse) ProtoReflect ¶
func (x *DeleteTokensResponse) ProtoReflect() protoreflect.Message
func (*DeleteTokensResponse) Reset ¶
func (x *DeleteTokensResponse) Reset()
func (*DeleteTokensResponse) String ¶
func (x *DeleteTokensResponse) String() string
func (*DeleteTokensResponse) Validate ¶
func (m *DeleteTokensResponse) Validate() error
Validate checks the field values on DeleteTokensResponse 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 (*DeleteTokensResponse) ValidateAll ¶
func (m *DeleteTokensResponse) ValidateAll() error
ValidateAll checks the field values on DeleteTokensResponse 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 DeleteTokensResponseMultiError, or nil if none found.
type DeleteTokensResponseMultiError ¶
type DeleteTokensResponseMultiError []error
DeleteTokensResponseMultiError is an error wrapping multiple validation errors returned by DeleteTokensResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteTokensResponseMultiError) AllErrors ¶
func (m DeleteTokensResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTokensResponseMultiError) Error ¶
func (m DeleteTokensResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTokensResponseValidationError ¶
type DeleteTokensResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteTokensResponseValidationError is the validation error returned by DeleteTokensResponse.Validate if the designated constraints aren't met.
func (DeleteTokensResponseValidationError) Cause ¶
func (e DeleteTokensResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteTokensResponseValidationError) Error ¶
func (e DeleteTokensResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTokensResponseValidationError) ErrorName ¶
func (e DeleteTokensResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTokensResponseValidationError) Field ¶
func (e DeleteTokensResponseValidationError) Field() string
Field function returns field value.
func (DeleteTokensResponseValidationError) Key ¶
func (e DeleteTokensResponseValidationError) Key() bool
Key function returns key value.
func (DeleteTokensResponseValidationError) Reason ¶
func (e DeleteTokensResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteTokensResponse_Result ¶
type DeleteTokensResponse_Result int32
const (
DeleteTokensResponse_OK DeleteTokensResponse_Result = 0
)
func (DeleteTokensResponse_Result) Descriptor ¶
func (DeleteTokensResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (DeleteTokensResponse_Result) Enum ¶
func (x DeleteTokensResponse_Result) Enum() *DeleteTokensResponse_Result
func (DeleteTokensResponse_Result) EnumDescriptor
deprecated
func (DeleteTokensResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeleteTokensResponse_Result.Descriptor instead.
func (DeleteTokensResponse_Result) Number ¶
func (x DeleteTokensResponse_Result) Number() protoreflect.EnumNumber
func (DeleteTokensResponse_Result) String ¶
func (x DeleteTokensResponse_Result) String() string
func (DeleteTokensResponse_Result) Type ¶
func (DeleteTokensResponse_Result) Type() protoreflect.EnumType
type PushClient ¶
type PushClient interface { // AddToken adds a push token associated with a user. AddToken(ctx context.Context, in *AddTokenRequest, opts ...grpc.CallOption) (*AddTokenResponse, error) // DeleteToken removes a specific push token from a user. // // Deprecated: Use DeleteTokens intead DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*DeleteTokenResponse, error) // DeleteTokens removes all push tokens within an app install for a user DeleteTokens(ctx context.Context, in *DeleteTokensRequest, opts ...grpc.CallOption) (*DeleteTokensResponse, error) }
PushClient is the client API for Push 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 NewPushClient ¶
func NewPushClient(cc grpc.ClientConnInterface) PushClient
type PushServer ¶
type PushServer interface { // AddToken adds a push token associated with a user. AddToken(context.Context, *AddTokenRequest) (*AddTokenResponse, error) // DeleteToken removes a specific push token from a user. // // Deprecated: Use DeleteTokens intead DeleteToken(context.Context, *DeleteTokenRequest) (*DeleteTokenResponse, error) // DeleteTokens removes all push tokens within an app install for a user DeleteTokens(context.Context, *DeleteTokensRequest) (*DeleteTokensResponse, error) // contains filtered or unexported methods }
PushServer is the server API for Push service. All implementations must embed UnimplementedPushServer for forward compatibility.
type TokenType ¶
type TokenType int32
func (TokenType) Descriptor ¶
func (TokenType) Descriptor() protoreflect.EnumDescriptor
func (TokenType) EnumDescriptor
deprecated
func (TokenType) Number ¶
func (x TokenType) Number() protoreflect.EnumNumber
func (TokenType) Type ¶
func (TokenType) Type() protoreflect.EnumType
type UnimplementedPushServer ¶
type UnimplementedPushServer struct{}
UnimplementedPushServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedPushServer) AddToken ¶
func (UnimplementedPushServer) AddToken(context.Context, *AddTokenRequest) (*AddTokenResponse, error)
func (UnimplementedPushServer) DeleteToken ¶
func (UnimplementedPushServer) DeleteToken(context.Context, *DeleteTokenRequest) (*DeleteTokenResponse, error)
func (UnimplementedPushServer) DeleteTokens ¶
func (UnimplementedPushServer) DeleteTokens(context.Context, *DeleteTokensRequest) (*DeleteTokensResponse, error)
type UnsafePushServer ¶
type UnsafePushServer interface {
// contains filtered or unexported methods
}
UnsafePushServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PushServer will result in compilation errors.