gorush: github.com/appleboy/gorush/rpc/proto Index | Files

package proto

import "github.com/appleboy/gorush/rpc/proto"

Index

Package Files

gorush.pb.go

Variables

var HealthCheckResponse_ServingStatus_name = map[int32]string{
    0:  "UNKNOWN",
    1:  "SERVING",
    2:  "NOT_SERVING",
}
var HealthCheckResponse_ServingStatus_value = map[string]int32{
    "UNKNOWN":     0,
    "SERVING":     1,
    "NOT_SERVING": 2,
}

func RegisterGorushServer Uses

func RegisterGorushServer(s *grpc.Server, srv GorushServer)

func RegisterHealthServer Uses

func RegisterHealthServer(s *grpc.Server, srv HealthServer)

type Alert Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Alert) Descriptor Uses

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

func (*Alert) GetAction Uses

func (m *Alert) GetAction() string

func (*Alert) GetActionLocKey Uses

func (m *Alert) GetActionLocKey() string

func (*Alert) GetBody Uses

func (m *Alert) GetBody() string

func (*Alert) GetLaunchImage Uses

func (m *Alert) GetLaunchImage() string

func (*Alert) GetLocArgs Uses

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

func (*Alert) GetLocKey Uses

func (m *Alert) GetLocKey() string

func (*Alert) GetSubtitle Uses

func (m *Alert) GetSubtitle() string

func (*Alert) GetTitle Uses

func (m *Alert) GetTitle() string

func (*Alert) GetTitleLocArgs Uses

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

func (*Alert) GetTitleLocKey Uses

func (m *Alert) GetTitleLocKey() string

func (*Alert) ProtoMessage Uses

func (*Alert) ProtoMessage()

func (*Alert) Reset Uses

func (m *Alert) Reset()

func (*Alert) String Uses

func (m *Alert) String() string

func (*Alert) XXX_DiscardUnknown Uses

func (m *Alert) XXX_DiscardUnknown()

func (*Alert) XXX_Marshal Uses

func (m *Alert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Alert) XXX_Merge Uses

func (m *Alert) XXX_Merge(src proto.Message)

func (*Alert) XXX_Size Uses

func (m *Alert) XXX_Size() int

func (*Alert) XXX_Unmarshal Uses

func (m *Alert) XXX_Unmarshal(b []byte) error

type GorushClient Uses

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 Uses

func NewGorushClient(cc *grpc.ClientConn) GorushClient

type GorushServer Uses

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

GorushServer is the server API for Gorush service.

type HealthCheckRequest Uses

type HealthCheckRequest struct {
    Service              string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*HealthCheckRequest) Descriptor Uses

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

func (*HealthCheckRequest) GetService Uses

func (m *HealthCheckRequest) GetService() string

func (*HealthCheckRequest) ProtoMessage Uses

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) Reset Uses

func (m *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String Uses

func (m *HealthCheckRequest) String() string

func (*HealthCheckRequest) XXX_DiscardUnknown Uses

func (m *HealthCheckRequest) XXX_DiscardUnknown()

func (*HealthCheckRequest) XXX_Marshal Uses

func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheckRequest) XXX_Merge Uses

func (m *HealthCheckRequest) XXX_Merge(src proto.Message)

func (*HealthCheckRequest) XXX_Size Uses

func (m *HealthCheckRequest) XXX_Size() int

func (*HealthCheckRequest) XXX_Unmarshal Uses

func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error

type HealthCheckResponse Uses

type HealthCheckResponse struct {
    Status               HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
    XXX_unrecognized     []byte                            `json:"-"`
    XXX_sizecache        int32                             `json:"-"`
}

func (*HealthCheckResponse) Descriptor Uses

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

func (*HealthCheckResponse) GetStatus Uses

func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus

func (*HealthCheckResponse) ProtoMessage Uses

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) Reset Uses

func (m *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String Uses

func (m *HealthCheckResponse) String() string

func (*HealthCheckResponse) XXX_DiscardUnknown Uses

func (m *HealthCheckResponse) XXX_DiscardUnknown()

func (*HealthCheckResponse) XXX_Marshal Uses

func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheckResponse) XXX_Merge Uses

func (m *HealthCheckResponse) XXX_Merge(src proto.Message)

func (*HealthCheckResponse) XXX_Size Uses

func (m *HealthCheckResponse) XXX_Size() int

func (*HealthCheckResponse) XXX_Unmarshal Uses

func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error

type HealthCheckResponse_ServingStatus Uses

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 Uses

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

func (HealthCheckResponse_ServingStatus) String Uses

func (x HealthCheckResponse_ServingStatus) String() string

type HealthClient Uses

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 Uses

func NewHealthClient(cc *grpc.ClientConn) HealthClient

type HealthServer Uses

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

HealthServer is the server API for Health service.

type NotificationReply Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*NotificationReply) Descriptor Uses

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

func (*NotificationReply) GetCounts Uses

func (m *NotificationReply) GetCounts() int32

func (*NotificationReply) GetSuccess Uses

func (m *NotificationReply) GetSuccess() bool

func (*NotificationReply) ProtoMessage Uses

func (*NotificationReply) ProtoMessage()

func (*NotificationReply) Reset Uses

func (m *NotificationReply) Reset()

func (*NotificationReply) String Uses

func (m *NotificationReply) String() string

func (*NotificationReply) XXX_DiscardUnknown Uses

func (m *NotificationReply) XXX_DiscardUnknown()

func (*NotificationReply) XXX_Marshal Uses

func (m *NotificationReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotificationReply) XXX_Merge Uses

func (m *NotificationReply) XXX_Merge(src proto.Message)

func (*NotificationReply) XXX_Size Uses

func (m *NotificationReply) XXX_Size() int

func (*NotificationReply) XXX_Unmarshal Uses

func (m *NotificationReply) XXX_Unmarshal(b []byte) error

type NotificationRequest Uses

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"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

func (*NotificationRequest) Descriptor Uses

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

func (*NotificationRequest) GetAlert Uses

func (m *NotificationRequest) GetAlert() *Alert

func (*NotificationRequest) GetBadge Uses

func (m *NotificationRequest) GetBadge() int32

func (*NotificationRequest) GetCategory Uses

func (m *NotificationRequest) GetCategory() string

func (*NotificationRequest) GetContentAvailable Uses

func (m *NotificationRequest) GetContentAvailable() bool

func (*NotificationRequest) GetData Uses

func (m *NotificationRequest) GetData() *_struct.Struct

func (*NotificationRequest) GetKey Uses

func (m *NotificationRequest) GetKey() string

func (*NotificationRequest) GetMessage Uses

func (m *NotificationRequest) GetMessage() string

func (*NotificationRequest) GetMutableContent Uses

func (m *NotificationRequest) GetMutableContent() bool

func (*NotificationRequest) GetPlatform Uses

func (m *NotificationRequest) GetPlatform() int32

func (*NotificationRequest) GetSound Uses

func (m *NotificationRequest) GetSound() string

func (*NotificationRequest) GetThreadID Uses

func (m *NotificationRequest) GetThreadID() string

func (*NotificationRequest) GetTitle Uses

func (m *NotificationRequest) GetTitle() string

func (*NotificationRequest) GetTokens Uses

func (m *NotificationRequest) GetTokens() []string

func (*NotificationRequest) GetTopic Uses

func (m *NotificationRequest) GetTopic() string

func (*NotificationRequest) ProtoMessage Uses

func (*NotificationRequest) ProtoMessage()

func (*NotificationRequest) Reset Uses

func (m *NotificationRequest) Reset()

func (*NotificationRequest) String Uses

func (m *NotificationRequest) String() string

func (*NotificationRequest) XXX_DiscardUnknown Uses

func (m *NotificationRequest) XXX_DiscardUnknown()

func (*NotificationRequest) XXX_Marshal Uses

func (m *NotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotificationRequest) XXX_Merge Uses

func (m *NotificationRequest) XXX_Merge(src proto.Message)

func (*NotificationRequest) XXX_Size Uses

func (m *NotificationRequest) XXX_Size() int

func (*NotificationRequest) XXX_Unmarshal Uses

func (m *NotificationRequest) XXX_Unmarshal(b []byte) error

Package proto imports 6 packages (graph) and is imported by 6 packages. Updated 2019-06-15. Refresh now. Tools for package owners.