Documentation ¶
Index ¶
Constants ¶
View Source
const InMemoryDir = ":memory:"
Variables ¶
This section is empty.
Functions ¶
func DecryptOutOfStoreMessageEnv ¶
func DecryptOutOfStoreMessageEnv(ctx context.Context, gd cryptoutil.GroupDatastoreReadOnly, env *pushtypes.OutOfStoreMessageEnvelope, groupPK crypto.PubKey) (*protocoltypes.OutOfStoreMessage, error)
Types ¶
type PushHandler ¶
type PushHandler interface { PushReceive(ctx context.Context, payload []byte) (*protocoltypes.PushReceive_Reply, error) PushPK() *[cryptoutil.KeySize]byte UpdatePushServer(ctx context.Context, server *protocoltypes.PushServer) error }
func NewPushHandler ¶
func NewPushHandler(opts *PushHandlerOpts) (PushHandler, error)
func NewPushHandlerViaProtocol ¶
func NewPushHandlerViaProtocol(ctx context.Context, serviceClient protocoltypes.ProtocolServiceClient) PushHandler
type PushHandlerOpts ¶
type PushHandlerOpts struct { Logger *zap.Logger PushKey *[cryptoutil.KeySize]byte DatastoreDir string RootDatastore ds.Datastore GroupDatastore *cryptoutil.GroupDatastore MessageKeystore *cryptoutil.MessageKeystore AccountCache ds.Datastore }
Click to show internal directories.
Click to hide internal directories.