Documentation ¶
Index ¶
- Variables
- func RegisterNotifyServiceServer(s grpc.ServiceRegistrar, srv NotifyServiceServer)
- type NotifyServiceClient
- type NotifyServiceServer
- type Platform
- type SaveDeviceTokenRequest
- func (*SaveDeviceTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveDeviceTokenRequest) GetDeviceId() string
- func (x *SaveDeviceTokenRequest) GetPlatform() Platform
- func (x *SaveDeviceTokenRequest) GetToken() string
- func (*SaveDeviceTokenRequest) ProtoMessage()
- func (x *SaveDeviceTokenRequest) ProtoReflect() protoreflect.Message
- func (x *SaveDeviceTokenRequest) Reset()
- func (x *SaveDeviceTokenRequest) String() string
- type SaveDeviceTokenResponse
- type UnimplementedNotifyServiceServer
- type UnsafeNotifyServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Platform_name = map[int32]string{ 0: "PLATFORM_UNSPECIFIED", 1: "PLATFORM_ANDROID", 2: "PLATFORM_IOS", 3: "PLATFORM_HUAWEI", } Platform_value = map[string]int32{ "PLATFORM_UNSPECIFIED": 0, "PLATFORM_ANDROID": 1, "PLATFORM_IOS": 2, "PLATFORM_HUAWEI": 3, } )
Enum value maps for Platform.
var File_basket_notify_service_v1_notify_proto protoreflect.FileDescriptor
var NotifyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "basket.notify_service.v1.NotifyService", HandlerType: (*NotifyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SaveDeviceToken", Handler: _NotifyService_SaveDeviceToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "basket/notify-service/v1/notify.proto", }
NotifyService_ServiceDesc is the grpc.ServiceDesc for NotifyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNotifyServiceServer ¶
func RegisterNotifyServiceServer(s grpc.ServiceRegistrar, srv NotifyServiceServer)
Types ¶
type NotifyServiceClient ¶
type NotifyServiceClient interface {
SaveDeviceToken(ctx context.Context, in *SaveDeviceTokenRequest, opts ...grpc.CallOption) (*SaveDeviceTokenResponse, error)
}
NotifyServiceClient is the client API for NotifyService 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 NewNotifyServiceClient ¶
func NewNotifyServiceClient(cc grpc.ClientConnInterface) NotifyServiceClient
type NotifyServiceServer ¶
type NotifyServiceServer interface { SaveDeviceToken(context.Context, *SaveDeviceTokenRequest) (*SaveDeviceTokenResponse, error) // contains filtered or unexported methods }
NotifyServiceServer is the server API for NotifyService service. All implementations must embed UnimplementedNotifyServiceServer for forward compatibility
type Platform ¶
type Platform int32
func (Platform) Descriptor ¶
func (Platform) Descriptor() protoreflect.EnumDescriptor
func (Platform) EnumDescriptor
deprecated
func (Platform) Number ¶
func (x Platform) Number() protoreflect.EnumNumber
func (Platform) Type ¶
func (Platform) Type() protoreflect.EnumType
type SaveDeviceTokenRequest ¶
type SaveDeviceTokenRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Platform Platform `protobuf:"varint,3,opt,name=platform,proto3,enum=basket.notify_service.v1.Platform" json:"platform,omitempty"` // contains filtered or unexported fields }
func (*SaveDeviceTokenRequest) Descriptor
deprecated
func (*SaveDeviceTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveDeviceTokenRequest.ProtoReflect.Descriptor instead.
func (*SaveDeviceTokenRequest) GetDeviceId ¶
func (x *SaveDeviceTokenRequest) GetDeviceId() string
func (*SaveDeviceTokenRequest) GetPlatform ¶
func (x *SaveDeviceTokenRequest) GetPlatform() Platform
func (*SaveDeviceTokenRequest) GetToken ¶
func (x *SaveDeviceTokenRequest) GetToken() string
func (*SaveDeviceTokenRequest) ProtoMessage ¶
func (*SaveDeviceTokenRequest) ProtoMessage()
func (*SaveDeviceTokenRequest) ProtoReflect ¶
func (x *SaveDeviceTokenRequest) ProtoReflect() protoreflect.Message
func (*SaveDeviceTokenRequest) Reset ¶
func (x *SaveDeviceTokenRequest) Reset()
func (*SaveDeviceTokenRequest) String ¶
func (x *SaveDeviceTokenRequest) String() string
type SaveDeviceTokenResponse ¶
type SaveDeviceTokenResponse struct {
// contains filtered or unexported fields
}
func (*SaveDeviceTokenResponse) Descriptor
deprecated
func (*SaveDeviceTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveDeviceTokenResponse.ProtoReflect.Descriptor instead.
func (*SaveDeviceTokenResponse) ProtoMessage ¶
func (*SaveDeviceTokenResponse) ProtoMessage()
func (*SaveDeviceTokenResponse) ProtoReflect ¶
func (x *SaveDeviceTokenResponse) ProtoReflect() protoreflect.Message
func (*SaveDeviceTokenResponse) Reset ¶
func (x *SaveDeviceTokenResponse) Reset()
func (*SaveDeviceTokenResponse) String ¶
func (x *SaveDeviceTokenResponse) String() string
type UnimplementedNotifyServiceServer ¶
type UnimplementedNotifyServiceServer struct { }
UnimplementedNotifyServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNotifyServiceServer) SaveDeviceToken ¶
func (UnimplementedNotifyServiceServer) SaveDeviceToken(context.Context, *SaveDeviceTokenRequest) (*SaveDeviceTokenResponse, error)
type UnsafeNotifyServiceServer ¶
type UnsafeNotifyServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNotifyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotifyServiceServer will result in compilation errors.