Documentation ¶
Index ¶
- Variables
- func RegisterGorushServer(s *grpc.Server, srv GorushServer)
- func RegisterHealthServer(s *grpc.Server, srv HealthServer)
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)
- func (m *Alert) GetAction() string
- func (m *Alert) GetActionLocKey() string
- func (m *Alert) GetBody() string
- func (m *Alert) GetLaunchImage() string
- func (m *Alert) GetLocArgs() []string
- func (m *Alert) GetLocKey() string
- func (m *Alert) GetSubtitle() string
- func (m *Alert) GetTitle() string
- func (m *Alert) GetTitleLocArgs() []string
- func (m *Alert) GetTitleLocKey() string
- func (m *Alert) Marshal() (dAtA []byte, err error)
- func (m *Alert) MarshalTo(dAtA []byte) (int, error)
- func (*Alert) ProtoMessage()
- func (m *Alert) Reset()
- func (m *Alert) Size() (n int)
- func (m *Alert) String() string
- func (m *Alert) Unmarshal(dAtA []byte) error
- func (m *Alert) XXX_DiscardUnknown()
- func (m *Alert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Alert) XXX_Merge(src proto.Message)
- func (m *Alert) XXX_Size() int
- func (m *Alert) XXX_Unmarshal(b []byte) error
- type GorushClient
- type GorushServer
- type HealthCheckRequest
- func (*HealthCheckRequest) Descriptor() ([]byte, []int)
- func (m *HealthCheckRequest) GetService() string
- func (m *HealthCheckRequest) Marshal() (dAtA []byte, err error)
- func (m *HealthCheckRequest) MarshalTo(dAtA []byte) (int, error)
- func (*HealthCheckRequest) ProtoMessage()
- func (m *HealthCheckRequest) Reset()
- func (m *HealthCheckRequest) Size() (n int)
- func (m *HealthCheckRequest) String() string
- func (m *HealthCheckRequest) Unmarshal(dAtA []byte) error
- func (m *HealthCheckRequest) XXX_DiscardUnknown()
- func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HealthCheckRequest) XXX_Merge(src proto.Message)
- func (m *HealthCheckRequest) XXX_Size() int
- func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)
- func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus
- func (m *HealthCheckResponse) Marshal() (dAtA []byte, err error)
- func (m *HealthCheckResponse) MarshalTo(dAtA []byte) (int, error)
- func (*HealthCheckResponse) ProtoMessage()
- func (m *HealthCheckResponse) Reset()
- func (m *HealthCheckResponse) Size() (n int)
- func (m *HealthCheckResponse) String() string
- func (m *HealthCheckResponse) Unmarshal(dAtA []byte) error
- func (m *HealthCheckResponse) XXX_DiscardUnknown()
- func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HealthCheckResponse) XXX_Merge(src proto.Message)
- func (m *HealthCheckResponse) XXX_Size() int
- func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
- type HealthCheckResponse_ServingStatus
- type HealthClient
- type HealthServer
- type NotificationReply
- func (*NotificationReply) Descriptor() ([]byte, []int)
- func (m *NotificationReply) GetCounts() int32
- func (m *NotificationReply) GetSuccess() bool
- func (m *NotificationReply) Marshal() (dAtA []byte, err error)
- func (m *NotificationReply) MarshalTo(dAtA []byte) (int, error)
- func (*NotificationReply) ProtoMessage()
- func (m *NotificationReply) Reset()
- func (m *NotificationReply) Size() (n int)
- func (m *NotificationReply) String() string
- func (m *NotificationReply) Unmarshal(dAtA []byte) error
- func (m *NotificationReply) XXX_DiscardUnknown()
- func (m *NotificationReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NotificationReply) XXX_Merge(src proto.Message)
- func (m *NotificationReply) XXX_Size() int
- func (m *NotificationReply) XXX_Unmarshal(b []byte) error
- type NotificationRequest
- func (*NotificationRequest) Descriptor() ([]byte, []int)
- func (m *NotificationRequest) GetAlert() *Alert
- func (m *NotificationRequest) GetBadge() int32
- func (m *NotificationRequest) GetCategory() string
- func (m *NotificationRequest) GetContentAvailable() bool
- func (m *NotificationRequest) GetKey() string
- func (m *NotificationRequest) GetMessage() string
- func (m *NotificationRequest) GetMutableContent() bool
- func (m *NotificationRequest) GetPlatform() int32
- func (m *NotificationRequest) GetSound() string
- func (m *NotificationRequest) GetThreadID() string
- func (m *NotificationRequest) GetTitle() string
- func (m *NotificationRequest) GetTokens() []string
- func (m *NotificationRequest) GetTopic() string
- func (m *NotificationRequest) Marshal() (dAtA []byte, err error)
- func (m *NotificationRequest) MarshalTo(dAtA []byte) (int, error)
- func (*NotificationRequest) ProtoMessage()
- func (m *NotificationRequest) Reset()
- func (m *NotificationRequest) Size() (n int)
- func (m *NotificationRequest) String() string
- func (m *NotificationRequest) Unmarshal(dAtA []byte) error
- func (m *NotificationRequest) XXX_DiscardUnknown()
- func (m *NotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NotificationRequest) XXX_Merge(src proto.Message)
- func (m *NotificationRequest) XXX_Size() int
- func (m *NotificationRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGorush = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGorush = fmt.Errorf("proto: integer overflow") )
View Source
var HealthCheckResponse_ServingStatus_name = map[int32]string{
0: "UNKNOWN",
1: "SERVING",
2: "NOT_SERVING",
}
View Source
var HealthCheckResponse_ServingStatus_value = map[string]int32{
"UNKNOWN": 0,
"SERVING": 1,
"NOT_SERVING": 2,
}
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" json:"locArgs,omitempty"` TitleLocArgs []string `protobuf:"bytes,10,rep,name=titleLocArgs" json:"titleLocArgs,omitempty"` }
func (*Alert) Descriptor ¶
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) XXX_DiscardUnknown ¶ added in v1.11.1
func (m *Alert) XXX_DiscardUnknown()
func (*Alert) XXX_Marshal ¶ added in v1.11.1
func (*Alert) XXX_Unmarshal ¶ added in v1.11.1
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.ClientConn) 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"`
}
func (*HealthCheckRequest) Descriptor ¶
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
func (*HealthCheckRequest) GetService ¶
func (m *HealthCheckRequest) GetService() string
func (*HealthCheckRequest) Marshal ¶ added in v1.11.1
func (m *HealthCheckRequest) Marshal() (dAtA []byte, err error)
func (*HealthCheckRequest) MarshalTo ¶ added in v1.11.1
func (m *HealthCheckRequest) MarshalTo(dAtA []byte) (int, error)
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) Reset ¶
func (m *HealthCheckRequest) Reset()
func (*HealthCheckRequest) Size ¶ added in v1.11.1
func (m *HealthCheckRequest) Size() (n int)
func (*HealthCheckRequest) String ¶
func (m *HealthCheckRequest) String() string
func (*HealthCheckRequest) Unmarshal ¶ added in v1.11.1
func (m *HealthCheckRequest) Unmarshal(dAtA []byte) error
func (*HealthCheckRequest) XXX_DiscardUnknown ¶ added in v1.11.1
func (m *HealthCheckRequest) XXX_DiscardUnknown()
func (*HealthCheckRequest) XXX_Marshal ¶ added in v1.11.1
func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheckRequest) XXX_Merge ¶ added in v1.11.1
func (dst *HealthCheckRequest) XXX_Merge(src proto.Message)
func (*HealthCheckRequest) XXX_Size ¶ added in v1.11.1
func (m *HealthCheckRequest) XXX_Size() int
func (*HealthCheckRequest) XXX_Unmarshal ¶ added in v1.11.1
func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error
type HealthCheckResponse ¶
type HealthCheckResponse struct {
Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
}
func (*HealthCheckResponse) Descriptor ¶
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
func (*HealthCheckResponse) GetStatus ¶
func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus
func (*HealthCheckResponse) Marshal ¶ added in v1.11.1
func (m *HealthCheckResponse) Marshal() (dAtA []byte, err error)
func (*HealthCheckResponse) MarshalTo ¶ added in v1.11.1
func (m *HealthCheckResponse) MarshalTo(dAtA []byte) (int, error)
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) Reset ¶
func (m *HealthCheckResponse) Reset()
func (*HealthCheckResponse) Size ¶ added in v1.11.1
func (m *HealthCheckResponse) Size() (n int)
func (*HealthCheckResponse) String ¶
func (m *HealthCheckResponse) String() string
func (*HealthCheckResponse) Unmarshal ¶ added in v1.11.1
func (m *HealthCheckResponse) Unmarshal(dAtA []byte) error
func (*HealthCheckResponse) XXX_DiscardUnknown ¶ added in v1.11.1
func (m *HealthCheckResponse) XXX_DiscardUnknown()
func (*HealthCheckResponse) XXX_Marshal ¶ added in v1.11.1
func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheckResponse) XXX_Merge ¶ added in v1.11.1
func (dst *HealthCheckResponse) XXX_Merge(src proto.Message)
func (*HealthCheckResponse) XXX_Size ¶ added in v1.11.1
func (m *HealthCheckResponse) XXX_Size() int
func (*HealthCheckResponse) XXX_Unmarshal ¶ added in v1.11.1
func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int)
func (HealthCheckResponse_ServingStatus) String ¶
func (x HealthCheckResponse_ServingStatus) String() string
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.ClientConn) 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"` }
func (*NotificationReply) Descriptor ¶
func (*NotificationReply) Descriptor() ([]byte, []int)
func (*NotificationReply) GetCounts ¶
func (m *NotificationReply) GetCounts() int32
func (*NotificationReply) GetSuccess ¶
func (m *NotificationReply) GetSuccess() bool
func (*NotificationReply) Marshal ¶ added in v1.11.1
func (m *NotificationReply) Marshal() (dAtA []byte, err error)
func (*NotificationReply) MarshalTo ¶ added in v1.11.1
func (m *NotificationReply) MarshalTo(dAtA []byte) (int, error)
func (*NotificationReply) ProtoMessage ¶
func (*NotificationReply) ProtoMessage()
func (*NotificationReply) Reset ¶
func (m *NotificationReply) Reset()
func (*NotificationReply) Size ¶ added in v1.11.1
func (m *NotificationReply) Size() (n int)
func (*NotificationReply) String ¶
func (m *NotificationReply) String() string
func (*NotificationReply) Unmarshal ¶ added in v1.11.1
func (m *NotificationReply) Unmarshal(dAtA []byte) error
func (*NotificationReply) XXX_DiscardUnknown ¶ added in v1.11.1
func (m *NotificationReply) XXX_DiscardUnknown()
func (*NotificationReply) XXX_Marshal ¶ added in v1.11.1
func (m *NotificationReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotificationReply) XXX_Merge ¶ added in v1.11.1
func (dst *NotificationReply) XXX_Merge(src proto.Message)
func (*NotificationReply) XXX_Size ¶ added in v1.11.1
func (m *NotificationReply) XXX_Size() int
func (*NotificationReply) XXX_Unmarshal ¶ added in v1.11.1
func (m *NotificationReply) XXX_Unmarshal(b []byte) error
type NotificationRequest ¶
type NotificationRequest struct { Tokens []string `protobuf:"bytes,1,rep,name=tokens" 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" 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"` }
func (*NotificationRequest) Descriptor ¶
func (*NotificationRequest) Descriptor() ([]byte, []int)
func (*NotificationRequest) GetAlert ¶
func (m *NotificationRequest) GetAlert() *Alert
func (*NotificationRequest) GetBadge ¶
func (m *NotificationRequest) GetBadge() int32
func (*NotificationRequest) GetCategory ¶
func (m *NotificationRequest) GetCategory() string
func (*NotificationRequest) GetContentAvailable ¶
func (m *NotificationRequest) GetContentAvailable() bool
func (*NotificationRequest) GetKey ¶
func (m *NotificationRequest) GetKey() string
func (*NotificationRequest) GetMessage ¶
func (m *NotificationRequest) GetMessage() string
func (*NotificationRequest) GetMutableContent ¶
func (m *NotificationRequest) GetMutableContent() bool
func (*NotificationRequest) GetPlatform ¶
func (m *NotificationRequest) GetPlatform() int32
func (*NotificationRequest) GetSound ¶
func (m *NotificationRequest) GetSound() string
func (*NotificationRequest) GetThreadID ¶
func (m *NotificationRequest) GetThreadID() string
func (*NotificationRequest) GetTitle ¶
func (m *NotificationRequest) GetTitle() string
func (*NotificationRequest) GetTokens ¶
func (m *NotificationRequest) GetTokens() []string
func (*NotificationRequest) GetTopic ¶
func (m *NotificationRequest) GetTopic() string
func (*NotificationRequest) Marshal ¶ added in v1.11.1
func (m *NotificationRequest) Marshal() (dAtA []byte, err error)
func (*NotificationRequest) MarshalTo ¶ added in v1.11.1
func (m *NotificationRequest) MarshalTo(dAtA []byte) (int, error)
func (*NotificationRequest) ProtoMessage ¶
func (*NotificationRequest) ProtoMessage()
func (*NotificationRequest) Reset ¶
func (m *NotificationRequest) Reset()
func (*NotificationRequest) Size ¶ added in v1.11.1
func (m *NotificationRequest) Size() (n int)
func (*NotificationRequest) String ¶
func (m *NotificationRequest) String() string
func (*NotificationRequest) Unmarshal ¶ added in v1.11.1
func (m *NotificationRequest) Unmarshal(dAtA []byte) error
func (*NotificationRequest) XXX_DiscardUnknown ¶ added in v1.11.1
func (m *NotificationRequest) XXX_DiscardUnknown()
func (*NotificationRequest) XXX_Marshal ¶ added in v1.11.1
func (m *NotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotificationRequest) XXX_Merge ¶ added in v1.11.1
func (dst *NotificationRequest) XXX_Merge(src proto.Message)
func (*NotificationRequest) XXX_Size ¶ added in v1.11.1
func (m *NotificationRequest) XXX_Size() int
func (*NotificationRequest) XXX_Unmarshal ¶ added in v1.11.1
func (m *NotificationRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.