Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistenceService ¶
type PersistenceService interface { // Add adds a shared secret, associated with an identity and an installationID Add(identity []byte, secret []byte, installationID string) error // Get returns a shared secret associated with multiple installationIDs Get(identity []byte, installationIDs []string) (*Response, error) // All returns an array of shared secrets, each one of them represented // as a byte array All() ([][][]byte, error) }
type SQLLitePersistence ¶
type SQLLitePersistence struct {
// contains filtered or unexported fields
}
func NewSQLLitePersistence ¶
func NewSQLLitePersistence(db *sql.DB) *SQLLitePersistence
func (*SQLLitePersistence) Add ¶
func (s *SQLLitePersistence) Add(identity []byte, secret []byte, installationID string) error
func (*SQLLitePersistence) All ¶
func (s *SQLLitePersistence) All() ([][][]byte, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(persistence PersistenceService) *Service
Click to show internal directories.
Click to hide internal directories.