v1

package
v0.3.54 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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
const (
	Platform_PLATFORM_UNSPECIFIED Platform = 0
	Platform_PLATFORM_ANDROID     Platform = 1
	Platform_PLATFORM_IOS         Platform = 2
	Platform_PLATFORM_HUAWEI      Platform = 3
)

func (Platform) Descriptor

func (Platform) Descriptor() protoreflect.EnumDescriptor

func (Platform) Enum

func (x Platform) Enum() *Platform

func (Platform) EnumDescriptor deprecated

func (Platform) EnumDescriptor() ([]byte, []int)

Deprecated: Use Platform.Descriptor instead.

func (Platform) Number

func (x Platform) Number() protoreflect.EnumNumber

func (Platform) String

func (x Platform) String() string

func (Platform) Type

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

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.

Directories

Path Synopsis
Package notify_mock is a generated GoMock package.
Package notify_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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