Documentation
¶
Index ¶
- Variables
- func RegisterGorushServer(s *grpc.Server, srv GorushServer)
- func RegisterHealthServer(s *grpc.Server, srv HealthServer)
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)deprecated
- func (x *Alert) GetAction() string
- func (x *Alert) GetActionLocKey() string
- func (x *Alert) GetBody() string
- func (x *Alert) GetLaunchImage() string
- func (x *Alert) GetLocArgs() []string
- func (x *Alert) GetLocKey() string
- func (x *Alert) GetSubtitle() string
- func (x *Alert) GetTitle() string
- func (x *Alert) GetTitleLocArgs() []string
- func (x *Alert) GetTitleLocKey() string
- func (*Alert) ProtoMessage()
- func (x *Alert) ProtoReflect() protoreflect.Message
- func (x *Alert) Reset()
- func (x *Alert) String() string
- type GorushClient
- type GorushServer
- type HealthCheckRequest
- func (*HealthCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckRequest) GetService() string
- func (*HealthCheckRequest) ProtoMessage()
- func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
- func (x *HealthCheckRequest) Reset()
- func (x *HealthCheckRequest) String() string
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) String() string
- type HealthCheckResponse_ServingStatus
- func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus
- func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber
- func (x HealthCheckResponse_ServingStatus) String() string
- func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType
- type HealthClient
- type HealthServer
- type NotificationReply
- func (*NotificationReply) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationReply) GetCounts() int32
- func (x *NotificationReply) GetSuccess() bool
- func (*NotificationReply) ProtoMessage()
- func (x *NotificationReply) ProtoReflect() protoreflect.Message
- func (x *NotificationReply) Reset()
- func (x *NotificationReply) String() string
- type NotificationRequest
- func (*NotificationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationRequest) GetAlert() *Alert
- func (x *NotificationRequest) GetBadge() int32
- func (x *NotificationRequest) GetCategory() string
- func (x *NotificationRequest) GetContentAvailable() bool
- func (x *NotificationRequest) GetData() *_struct.Struct
- func (x *NotificationRequest) GetImage() string
- func (x *NotificationRequest) GetKey() string
- func (x *NotificationRequest) GetMessage() string
- func (x *NotificationRequest) GetMutableContent() bool
- func (x *NotificationRequest) GetPlatform() int32
- func (x *NotificationRequest) GetPriority() Priority
- func (x *NotificationRequest) GetSound() string
- func (x *NotificationRequest) GetThreadID() string
- func (x *NotificationRequest) GetTitle() string
- func (x *NotificationRequest) GetTokens() []string
- func (x *NotificationRequest) GetTopic() string
- func (*NotificationRequest) ProtoMessage()
- func (x *NotificationRequest) ProtoReflect() protoreflect.Message
- func (x *NotificationRequest) Reset()
- func (x *NotificationRequest) String() string
- type Priority
- type UnimplementedGorushServer
- type UnimplementedHealthServer
Constants ¶
This section is empty.
Variables ¶
var ( Priority_name = map[int32]string{ 0: "Normal", 1: "High", } Priority_value = map[string]int32{ "Normal": 0, "High": 1, } )
Enum value maps for Priority.
var ( HealthCheckResponse_ServingStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "SERVING", 2: "NOT_SERVING", } HealthCheckResponse_ServingStatus_value = map[string]int32{ "UNKNOWN": 0, "SERVING": 1, "NOT_SERVING": 2, } )
Enum value maps for HealthCheckResponse_ServingStatus.
var File_gorush_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGorushServer ¶
func RegisterGorushServer(s *grpc.Server, srv GorushServer)
func RegisterHealthServer ¶
func RegisterHealthServer(s *grpc.Server, srv HealthServer)
Types ¶
type Alert ¶
type Alert struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` Subtitle string `protobuf:"bytes,3,opt,name=subtitle,proto3" json:"subtitle,omitempty"` Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` ActionLocKey string `protobuf:"bytes,5,opt,name=actionLocKey,proto3" json:"actionLocKey,omitempty"` LaunchImage string `protobuf:"bytes,6,opt,name=launchImage,proto3" json:"launchImage,omitempty"` LocKey string `protobuf:"bytes,7,opt,name=locKey,proto3" json:"locKey,omitempty"` TitleLocKey string `protobuf:"bytes,8,opt,name=titleLocKey,proto3" json:"titleLocKey,omitempty"` LocArgs []string `protobuf:"bytes,9,rep,name=locArgs,proto3" json:"locArgs,omitempty"` TitleLocArgs []string `protobuf:"bytes,10,rep,name=titleLocArgs,proto3" json:"titleLocArgs,omitempty"` // contains filtered or unexported fields }
func (*Alert) Descriptor
deprecated
func (*Alert) GetActionLocKey ¶
func (*Alert) GetLaunchImage ¶
func (*Alert) GetLocArgs ¶
func (*Alert) GetSubtitle ¶
func (*Alert) GetTitleLocArgs ¶
func (*Alert) GetTitleLocKey ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶
func (x *Alert) ProtoReflect() protoreflect.Message
type GorushClient ¶
type GorushClient interface {
Send(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationReply, error)
}
GorushClient is the client API for Gorush service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGorushClient ¶
func NewGorushClient(cc grpc.ClientConnInterface) GorushClient
type GorushServer ¶
type GorushServer interface {
Send(context.Context, *NotificationRequest) (*NotificationReply, error)
}
GorushServer is the server API for Gorush service.
type HealthCheckRequest ¶
type HealthCheckRequest struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*HealthCheckRequest) Descriptor
deprecated
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest) GetService ¶
func (x *HealthCheckRequest) GetService() string
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) ProtoReflect ¶
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
func (*HealthCheckRequest) Reset ¶
func (x *HealthCheckRequest) Reset()
func (*HealthCheckRequest) String ¶
func (x *HealthCheckRequest) String() string
type HealthCheckResponse ¶
type HealthCheckResponse struct { Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetStatus ¶
func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type HealthCheckResponse_ServingStatus ¶
type HealthCheckResponse_ServingStatus int32
const ( HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 )
func (HealthCheckResponse_ServingStatus) Descriptor ¶
func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor
func (HealthCheckResponse_ServingStatus) Enum ¶
func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus
func (HealthCheckResponse_ServingStatus) EnumDescriptor
deprecated
func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead.
func (HealthCheckResponse_ServingStatus) Number ¶
func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber
func (HealthCheckResponse_ServingStatus) String ¶
func (x HealthCheckResponse_ServingStatus) String() string
func (HealthCheckResponse_ServingStatus) Type ¶
func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType
type HealthClient ¶
type HealthClient interface {
Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
}
HealthClient is the client API for Health service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHealthClient ¶
func NewHealthClient(cc grpc.ClientConnInterface) HealthClient
type HealthServer ¶
type HealthServer interface {
Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
}
HealthServer is the server API for Health service.
type NotificationReply ¶
type NotificationReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Counts int32 `protobuf:"varint,2,opt,name=counts,proto3" json:"counts,omitempty"` // contains filtered or unexported fields }
func (*NotificationReply) Descriptor
deprecated
func (*NotificationReply) Descriptor() ([]byte, []int)
Deprecated: Use NotificationReply.ProtoReflect.Descriptor instead.
func (*NotificationReply) GetCounts ¶
func (x *NotificationReply) GetCounts() int32
func (*NotificationReply) GetSuccess ¶
func (x *NotificationReply) GetSuccess() bool
func (*NotificationReply) ProtoMessage ¶
func (*NotificationReply) ProtoMessage()
func (*NotificationReply) ProtoReflect ¶
func (x *NotificationReply) ProtoReflect() protoreflect.Message
func (*NotificationReply) Reset ¶
func (x *NotificationReply) Reset()
func (*NotificationReply) String ¶
func (x *NotificationReply) String() string
type NotificationRequest ¶
type NotificationRequest struct { Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` Platform int32 `protobuf:"varint,2,opt,name=platform,proto3" json:"platform,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Topic string `protobuf:"bytes,5,opt,name=topic,proto3" json:"topic,omitempty"` Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` Badge int32 `protobuf:"varint,7,opt,name=badge,proto3" json:"badge,omitempty"` Category string `protobuf:"bytes,8,opt,name=category,proto3" json:"category,omitempty"` Alert *Alert `protobuf:"bytes,9,opt,name=alert,proto3" json:"alert,omitempty"` Sound string `protobuf:"bytes,10,opt,name=sound,proto3" json:"sound,omitempty"` ContentAvailable bool `protobuf:"varint,11,opt,name=contentAvailable,proto3" json:"contentAvailable,omitempty"` ThreadID string `protobuf:"bytes,12,opt,name=threadID,proto3" json:"threadID,omitempty"` MutableContent bool `protobuf:"varint,13,opt,name=mutableContent,proto3" json:"mutableContent,omitempty"` Data *_struct.Struct `protobuf:"bytes,14,opt,name=data,proto3" json:"data,omitempty"` Image string `protobuf:"bytes,15,opt,name=image,proto3" json:"image,omitempty"` Priority Priority `protobuf:"varint,16,opt,name=Priority,proto3,enum=proto.Priority" json:"Priority,omitempty"` // contains filtered or unexported fields }
func (*NotificationRequest) Descriptor
deprecated
func (*NotificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotificationRequest.ProtoReflect.Descriptor instead.
func (*NotificationRequest) GetAlert ¶
func (x *NotificationRequest) GetAlert() *Alert
func (*NotificationRequest) GetBadge ¶
func (x *NotificationRequest) GetBadge() int32
func (*NotificationRequest) GetCategory ¶
func (x *NotificationRequest) GetCategory() string
func (*NotificationRequest) GetContentAvailable ¶
func (x *NotificationRequest) GetContentAvailable() bool
func (*NotificationRequest) GetData ¶
func (x *NotificationRequest) GetData() *_struct.Struct
func (*NotificationRequest) GetImage ¶
func (x *NotificationRequest) GetImage() string
func (*NotificationRequest) GetKey ¶
func (x *NotificationRequest) GetKey() string
func (*NotificationRequest) GetMessage ¶
func (x *NotificationRequest) GetMessage() string
func (*NotificationRequest) GetMutableContent ¶
func (x *NotificationRequest) GetMutableContent() bool
func (*NotificationRequest) GetPlatform ¶
func (x *NotificationRequest) GetPlatform() int32
func (*NotificationRequest) GetPriority ¶
func (x *NotificationRequest) GetPriority() Priority
func (*NotificationRequest) GetSound ¶
func (x *NotificationRequest) GetSound() string
func (*NotificationRequest) GetThreadID ¶
func (x *NotificationRequest) GetThreadID() string
func (*NotificationRequest) GetTitle ¶
func (x *NotificationRequest) GetTitle() string
func (*NotificationRequest) GetTokens ¶
func (x *NotificationRequest) GetTokens() []string
func (*NotificationRequest) GetTopic ¶
func (x *NotificationRequest) GetTopic() string
func (*NotificationRequest) ProtoMessage ¶
func (*NotificationRequest) ProtoMessage()
func (*NotificationRequest) ProtoReflect ¶
func (x *NotificationRequest) ProtoReflect() protoreflect.Message
func (*NotificationRequest) Reset ¶
func (x *NotificationRequest) Reset()
func (*NotificationRequest) String ¶
func (x *NotificationRequest) String() string
type Priority ¶
type Priority int32
func (Priority) Descriptor ¶
func (Priority) Descriptor() protoreflect.EnumDescriptor
func (Priority) EnumDescriptor
deprecated
func (Priority) Number ¶
func (x Priority) Number() protoreflect.EnumNumber
func (Priority) Type ¶
func (Priority) Type() protoreflect.EnumType
type UnimplementedGorushServer ¶
type UnimplementedGorushServer struct{}
UnimplementedGorushServer can be embedded to have forward compatible implementations.
func (*UnimplementedGorushServer) Send ¶
func (*UnimplementedGorushServer) Send(context.Context, *NotificationRequest) (*NotificationReply, error)
type UnimplementedHealthServer ¶
type UnimplementedHealthServer struct{}
UnimplementedHealthServer can be embedded to have forward compatible implementations.
func (*UnimplementedHealthServer) Check ¶
func (*UnimplementedHealthServer) Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)