proto

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

gorush.proto

It has these top-level messages:

Alert
NotificationRequest
NotificationReply
HealthCheckRequest
HealthCheckResponse

Index

Constants

This section is empty.

Variables

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" json:"title,omitempty"`
	Body         string   `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"`
	Subtitle     string   `protobuf:"bytes,3,opt,name=subtitle" json:"subtitle,omitempty"`
	Action       string   `protobuf:"bytes,4,opt,name=action" json:"action,omitempty"`
	ActionLocKey string   `protobuf:"bytes,5,opt,name=actionLocKey" json:"actionLocKey,omitempty"`
	LaunchImage  string   `protobuf:"bytes,6,opt,name=launchImage" json:"launchImage,omitempty"`
	LocKey       string   `protobuf:"bytes,7,opt,name=locKey" json:"locKey,omitempty"`
	TitleLocKey  string   `protobuf:"bytes,8,opt,name=titleLocKey" 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) Descriptor() ([]byte, []int)

func (*Alert) GetAction

func (m *Alert) GetAction() string

func (*Alert) GetActionLocKey

func (m *Alert) GetActionLocKey() string

func (*Alert) GetBody

func (m *Alert) GetBody() string

func (*Alert) GetLaunchImage

func (m *Alert) GetLaunchImage() string

func (*Alert) GetLocArgs

func (m *Alert) GetLocArgs() []string

func (*Alert) GetLocKey

func (m *Alert) GetLocKey() string

func (*Alert) GetSubtitle

func (m *Alert) GetSubtitle() string

func (*Alert) GetTitle

func (m *Alert) GetTitle() string

func (*Alert) GetTitleLocArgs

func (m *Alert) GetTitleLocArgs() []string

func (*Alert) GetTitleLocKey

func (m *Alert) GetTitleLocKey() string

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) Reset

func (m *Alert) Reset()

func (*Alert) String

func (m *Alert) String() string

type GorushClient

type GorushClient interface {
	Send(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationReply, error)
}

func NewGorushClient

func NewGorushClient(cc *grpc.ClientConn) GorushClient

type GorushServer

type GorushServer interface {
	Send(context.Context, *NotificationRequest) (*NotificationReply, error)
}

type HealthCheckRequest

type HealthCheckRequest struct {
	Service string `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
}

func (*HealthCheckRequest) Descriptor

func (*HealthCheckRequest) Descriptor() ([]byte, []int)

func (*HealthCheckRequest) GetService

func (m *HealthCheckRequest) GetService() string

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) Reset

func (m *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String

func (m *HealthCheckRequest) String() string

type HealthCheckResponse

type HealthCheckResponse struct {
	Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
}

func (*HealthCheckResponse) Descriptor

func (*HealthCheckResponse) Descriptor() ([]byte, []int)

func (*HealthCheckResponse) GetStatus

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) Reset

func (m *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String

func (m *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) EnumDescriptor

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

func (HealthCheckResponse_ServingStatus) String

type HealthClient

type HealthClient interface {
	Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
}

func NewHealthClient

func NewHealthClient(cc *grpc.ClientConn) HealthClient

type HealthServer

type HealthServer interface {
	Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
}

type NotificationReply

type NotificationReply struct {
	Success bool  `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	Counts  int32 `protobuf:"varint,2,opt,name=counts" 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) ProtoMessage

func (*NotificationReply) ProtoMessage()

func (*NotificationReply) Reset

func (m *NotificationReply) Reset()

func (*NotificationReply) String

func (m *NotificationReply) String() string

type NotificationRequest

type NotificationRequest struct {
	Tokens           []string `protobuf:"bytes,1,rep,name=tokens" json:"tokens,omitempty"`
	Platform         int32    `protobuf:"varint,2,opt,name=platform" json:"platform,omitempty"`
	Message          string   `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	Title            string   `protobuf:"bytes,4,opt,name=title" json:"title,omitempty"`
	Topic            string   `protobuf:"bytes,5,opt,name=topic" json:"topic,omitempty"`
	Key              string   `protobuf:"bytes,6,opt,name=key" json:"key,omitempty"`
	Badge            int32    `protobuf:"varint,7,opt,name=badge" json:"badge,omitempty"`
	Category         string   `protobuf:"bytes,8,opt,name=category" json:"category,omitempty"`
	Alert            *Alert   `protobuf:"bytes,9,opt,name=alert" json:"alert,omitempty"`
	Sound            string   `protobuf:"bytes,10,opt,name=sound" json:"sound,omitempty"`
	ContentAvailable bool     `protobuf:"varint,11,opt,name=contentAvailable" json:"contentAvailable,omitempty"`
	ThreadID         string   `protobuf:"bytes,12,opt,name=threadID" json:"threadID,omitempty"`
	MutableContent   bool     `protobuf:"varint,13,opt,name=mutableContent" 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) ProtoMessage

func (*NotificationRequest) ProtoMessage()

func (*NotificationRequest) Reset

func (m *NotificationRequest) Reset()

func (*NotificationRequest) String

func (m *NotificationRequest) String() string

Jump to

Keyboard shortcuts

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