bertypush

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const InMemoryDir = ":memory:"

Variables

This section is empty.

Functions

func DecryptPushDataFromServer

func DecryptPushDataFromServer(data []byte, serverPK, ownSK *[32]byte) ([]byte, 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
}

Jump to

Keyboard shortcuts

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