Documentation ¶
Index ¶
- func RegisterNotifierServer(s *grpc.Server, srv NotifierServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type FetchRequest
- func (*FetchRequest) Descriptor() ([]byte, []int)
- func (m *FetchRequest) GetDeaddropId() []byte
- func (m *FetchRequest) GetLastRead() []byte
- func (*FetchRequest) ProtoMessage()
- func (m *FetchRequest) Reset()
- func (m *FetchRequest) String() string
- func (m *FetchRequest) XXX_DiscardUnknown()
- func (m *FetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FetchRequest) XXX_Merge(src proto.Message)
- func (m *FetchRequest) XXX_Size() int
- func (m *FetchRequest) XXX_Unmarshal(b []byte) error
- type FetchResponse
- func (*FetchResponse) Descriptor() ([]byte, []int)
- func (m *FetchResponse) GetNotifications() []*Notification
- func (*FetchResponse) ProtoMessage()
- func (m *FetchResponse) Reset()
- func (m *FetchResponse) String() string
- func (m *FetchResponse) XXX_DiscardUnknown()
- func (m *FetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FetchResponse) XXX_Merge(src proto.Message)
- func (m *FetchResponse) XXX_Size() int
- func (m *FetchResponse) XXX_Unmarshal(b []byte) error
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)
- func (m *Notification) GetContents() []byte
- func (m *Notification) GetHint() uint32
- func (*Notification) ProtoMessage()
- func (m *Notification) Reset()
- func (m *Notification) String() string
- func (m *Notification) XXX_DiscardUnknown()
- func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Notification) XXX_Merge(src proto.Message)
- func (m *Notification) XXX_Size() int
- func (m *Notification) XXX_Unmarshal(b []byte) error
- type NotifierClient
- type NotifierServer
- type PostRequestV1
- func (*PostRequestV1) Descriptor() ([]byte, []int)
- func (m *PostRequestV1) GetContents() []byte
- func (m *PostRequestV1) GetSealedAddress() []byte
- func (*PostRequestV1) ProtoMessage()
- func (m *PostRequestV1) Reset()
- func (m *PostRequestV1) String() string
- func (m *PostRequestV1) XXX_DiscardUnknown()
- func (m *PostRequestV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostRequestV1) XXX_Merge(src proto.Message)
- func (m *PostRequestV1) XXX_Size() int
- func (m *PostRequestV1) XXX_Unmarshal(b []byte) error
- type UnimplementedNotifierServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNotifierServer ¶
func RegisterNotifierServer(s *grpc.Server, srv NotifierServer)
Types ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type FetchRequest ¶
type FetchRequest struct { DeaddropId []byte `protobuf:"bytes,1,opt,name=deaddrop_id,json=deaddropId,proto3" json:"deaddrop_id,omitempty"` LastRead []byte `protobuf:"bytes,2,opt,name=last_read,json=lastRead,proto3" json:"last_read,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FetchRequest) Descriptor ¶
func (*FetchRequest) Descriptor() ([]byte, []int)
func (*FetchRequest) GetDeaddropId ¶
func (m *FetchRequest) GetDeaddropId() []byte
func (*FetchRequest) GetLastRead ¶
func (m *FetchRequest) GetLastRead() []byte
func (*FetchRequest) ProtoMessage ¶
func (*FetchRequest) ProtoMessage()
func (*FetchRequest) Reset ¶
func (m *FetchRequest) Reset()
func (*FetchRequest) String ¶
func (m *FetchRequest) String() string
func (*FetchRequest) XXX_DiscardUnknown ¶
func (m *FetchRequest) XXX_DiscardUnknown()
func (*FetchRequest) XXX_Marshal ¶
func (m *FetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FetchRequest) XXX_Merge ¶
func (m *FetchRequest) XXX_Merge(src proto.Message)
func (*FetchRequest) XXX_Size ¶
func (m *FetchRequest) XXX_Size() int
func (*FetchRequest) XXX_Unmarshal ¶
func (m *FetchRequest) XXX_Unmarshal(b []byte) error
type FetchResponse ¶
type FetchResponse struct { Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FetchResponse) Descriptor ¶
func (*FetchResponse) Descriptor() ([]byte, []int)
func (*FetchResponse) GetNotifications ¶
func (m *FetchResponse) GetNotifications() []*Notification
func (*FetchResponse) ProtoMessage ¶
func (*FetchResponse) ProtoMessage()
func (*FetchResponse) Reset ¶
func (m *FetchResponse) Reset()
func (*FetchResponse) String ¶
func (m *FetchResponse) String() string
func (*FetchResponse) XXX_DiscardUnknown ¶
func (m *FetchResponse) XXX_DiscardUnknown()
func (*FetchResponse) XXX_Marshal ¶
func (m *FetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FetchResponse) XXX_Merge ¶
func (m *FetchResponse) XXX_Merge(src proto.Message)
func (*FetchResponse) XXX_Size ¶
func (m *FetchResponse) XXX_Size() int
func (*FetchResponse) XXX_Unmarshal ¶
func (m *FetchResponse) XXX_Unmarshal(b []byte) error
type Notification ¶
type Notification struct { Hint uint32 `protobuf:"varint,1,opt,name=hint,proto3" json:"hint,omitempty"` Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Notification) Descriptor ¶
func (*Notification) Descriptor() ([]byte, []int)
func (*Notification) GetContents ¶
func (m *Notification) GetContents() []byte
func (*Notification) GetHint ¶
func (m *Notification) GetHint() uint32
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) Reset ¶
func (m *Notification) Reset()
func (*Notification) String ¶
func (m *Notification) String() string
func (*Notification) XXX_DiscardUnknown ¶
func (m *Notification) XXX_DiscardUnknown()
func (*Notification) XXX_Marshal ¶
func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Notification) XXX_Merge ¶
func (m *Notification) XXX_Merge(src proto.Message)
func (*Notification) XXX_Size ¶
func (m *Notification) XXX_Size() int
func (*Notification) XXX_Unmarshal ¶
func (m *Notification) XXX_Unmarshal(b []byte) error
type NotifierClient ¶
type NotifierClient interface { PostNotificationV1(ctx context.Context, in *PostRequestV1, opts ...grpc.CallOption) (*Empty, error) FetchNotifications(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*FetchResponse, error) }
NotifierClient is the client API for Notifier service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNotifierClient ¶
func NewNotifierClient(cc *grpc.ClientConn) NotifierClient
type NotifierServer ¶
type NotifierServer interface { PostNotificationV1(context.Context, *PostRequestV1) (*Empty, error) FetchNotifications(context.Context, *FetchRequest) (*FetchResponse, error) }
NotifierServer is the server API for Notifier service.
type PostRequestV1 ¶
type PostRequestV1 struct { SealedAddress []byte `protobuf:"bytes,1,opt,name=sealed_address,json=sealedAddress,proto3" json:"sealed_address,omitempty"` Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PostRequestV1) Descriptor ¶
func (*PostRequestV1) Descriptor() ([]byte, []int)
func (*PostRequestV1) GetContents ¶
func (m *PostRequestV1) GetContents() []byte
func (*PostRequestV1) GetSealedAddress ¶
func (m *PostRequestV1) GetSealedAddress() []byte
func (*PostRequestV1) ProtoMessage ¶
func (*PostRequestV1) ProtoMessage()
func (*PostRequestV1) Reset ¶
func (m *PostRequestV1) Reset()
func (*PostRequestV1) String ¶
func (m *PostRequestV1) String() string
func (*PostRequestV1) XXX_DiscardUnknown ¶
func (m *PostRequestV1) XXX_DiscardUnknown()
func (*PostRequestV1) XXX_Marshal ¶
func (m *PostRequestV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostRequestV1) XXX_Merge ¶
func (m *PostRequestV1) XXX_Merge(src proto.Message)
func (*PostRequestV1) XXX_Size ¶
func (m *PostRequestV1) XXX_Size() int
func (*PostRequestV1) XXX_Unmarshal ¶
func (m *PostRequestV1) XXX_Unmarshal(b []byte) error
type UnimplementedNotifierServer ¶
type UnimplementedNotifierServer struct { }
UnimplementedNotifierServer can be embedded to have forward compatible implementations.
func (*UnimplementedNotifierServer) FetchNotifications ¶
func (*UnimplementedNotifierServer) FetchNotifications(ctx context.Context, req *FetchRequest) (*FetchResponse, error)
func (*UnimplementedNotifierServer) PostNotificationV1 ¶
func (*UnimplementedNotifierServer) PostNotificationV1(ctx context.Context, req *PostRequestV1) (*Empty, error)
Click to show internal directories.
Click to hide internal directories.