Documentation ¶
Overview ¶
Package pusherpb is a generated protocol buffer package.
Pusher API ¶
It is generated from these files:
pusher_service.proto
It has these top-level messages:
Status PushRequest PushResponse PushSettingsRequest PushSettingsResponse
Index ¶
- Variables
- func RegisterPusherServiceHandlers(s *tcprpc.Server, prefix string, srv PusherServiceInterface)
- func RegisterSettingsPusherServiceHandlers(s *tcprpc.Server, prefix string, srv SettingsPusherServiceInterface)
- type PushCode
- type PushRequest
- type PushResponse
- type PushSettingsRequest
- type PushSettingsResponse
- type PusherServiceInterface
- type SettingsPusherServiceInterface
- type Status
- type TCPRPCPusherServiceClient
- type TCPRPCSettingsPusherServiceClient
Constants ¶
This section is empty.
Variables ¶
View Source
var PushCode_name = map[int32]string{
0: "OK",
1: "INTERNAL_ERROR",
}
View Source
var PushCode_value = map[string]int32{
"OK": 0,
"INTERNAL_ERROR": 1,
}
Functions ¶
func RegisterPusherServiceHandlers ¶
func RegisterPusherServiceHandlers(s *tcprpc.Server, prefix string, srv PusherServiceInterface)
func RegisterSettingsPusherServiceHandlers ¶
func RegisterSettingsPusherServiceHandlers(s *tcprpc.Server, prefix string, srv SettingsPusherServiceInterface)
Types ¶
type PushRequest ¶
type PushRequest struct {
Txns []*chain.Txn `protobuf:"bytes,1,rep,name=txns" json:"txns,omitempty"`
}
func (*PushRequest) Descriptor ¶
func (*PushRequest) Descriptor() ([]byte, []int)
func (*PushRequest) GetTxns ¶
func (m *PushRequest) GetTxns() []*chain.Txn
func (*PushRequest) ProtoMessage ¶
func (*PushRequest) ProtoMessage()
func (*PushRequest) Reset ¶
func (m *PushRequest) Reset()
func (*PushRequest) String ¶
func (m *PushRequest) String() string
type PushResponse ¶
type PushResponse struct {
Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}
func (*PushResponse) Descriptor ¶
func (*PushResponse) Descriptor() ([]byte, []int)
func (*PushResponse) GetStatus ¶
func (m *PushResponse) GetStatus() *Status
func (*PushResponse) ProtoMessage ¶
func (*PushResponse) ProtoMessage()
func (*PushResponse) Reset ¶
func (m *PushResponse) Reset()
func (*PushResponse) String ¶
func (m *PushResponse) String() string
type PushSettingsRequest ¶
type PushSettingsRequest struct {
Settings []*chain.Settings `protobuf:"bytes,1,rep,name=settings" json:"settings,omitempty"`
}
func (*PushSettingsRequest) Descriptor ¶
func (*PushSettingsRequest) Descriptor() ([]byte, []int)
func (*PushSettingsRequest) GetSettings ¶
func (m *PushSettingsRequest) GetSettings() []*chain.Settings
func (*PushSettingsRequest) ProtoMessage ¶
func (*PushSettingsRequest) ProtoMessage()
func (*PushSettingsRequest) Reset ¶
func (m *PushSettingsRequest) Reset()
func (*PushSettingsRequest) String ¶
func (m *PushSettingsRequest) String() string
type PushSettingsResponse ¶
type PushSettingsResponse struct {
Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}
func (*PushSettingsResponse) Descriptor ¶
func (*PushSettingsResponse) Descriptor() ([]byte, []int)
func (*PushSettingsResponse) GetStatus ¶
func (m *PushSettingsResponse) GetStatus() *Status
func (*PushSettingsResponse) ProtoMessage ¶
func (*PushSettingsResponse) ProtoMessage()
func (*PushSettingsResponse) Reset ¶
func (m *PushSettingsResponse) Reset()
func (*PushSettingsResponse) String ¶
func (m *PushSettingsResponse) String() string
type PusherServiceInterface ¶
type PusherServiceInterface interface {
Push(context.Context, *PushRequest) (*PushResponse, error)
}
type SettingsPusherServiceInterface ¶
type SettingsPusherServiceInterface interface {
PushSettings(context.Context, *PushSettingsRequest) (*PushSettingsResponse, error)
}
type Status ¶
type Status struct { // A simple error code that can be easily handled by the client. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // A developer-facing human-readable error message in English. It should // both explain the error and offer an actionable resolution to it. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` }
func (*Status) Descriptor ¶
func (*Status) GetMessage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
type TCPRPCPusherServiceClient ¶
type TCPRPCPusherServiceClient struct {
// contains filtered or unexported fields
}
func NewTCPRPCPusherServiceClient ¶
func NewTCPRPCPusherServiceClient(cl *tcprpc.Client, pref string) TCPRPCPusherServiceClient
func (TCPRPCPusherServiceClient) Push ¶
func (cl TCPRPCPusherServiceClient) Push(ctx context.Context, args *PushRequest) (*PushResponse, error)
type TCPRPCSettingsPusherServiceClient ¶
type TCPRPCSettingsPusherServiceClient struct {
// contains filtered or unexported fields
}
func NewTCPRPCSettingsPusherServiceClient ¶
func NewTCPRPCSettingsPusherServiceClient(cl *tcprpc.Client, pref string) TCPRPCSettingsPusherServiceClient
func (TCPRPCSettingsPusherServiceClient) PushSettings ¶
func (cl TCPRPCSettingsPusherServiceClient) PushSettings(ctx context.Context, args *PushSettingsRequest) (*PushSettingsResponse, error)
Click to show internal directories.
Click to hide internal directories.