package
0.0.0-20200507155645-0e2b5c99c75c
Repository: https://github.com/teserakt-io/c2.git
Documentation: pkg.go.dev
# Functions
IsErrRecordNotFound indicate whenever error is a RecordNotFound error.
NewE4 creates a new E4 service.
ValidateE4NameOrIDPair will check the following logic: 1.
# Variables
GetLinkedClientsBatchSize is the maximum number of clients pulled from the database at a time when sending them the new client pubkey.
NewC2KeyBatchSize is the maximum number of clients pulled from the database at a time when sending them the new C2 key.
NewTopicBatchSize is the maximum number of topic clients pulled from the database at a time when sending them the new topic key.
# Structs
ErrClientNotFound is a database error when a requested record cannot be found A message containing the missing entity type will be returned to the user.
ErrInternal describe an internal error A generic error message will be returned to the user.
ErrInvalidCryptoMode is returned when trying to execute a method retricted by the current mode.
ErrTopicNotFound is a database error when a requested record cannot be found A message containing the missing entity type will be returned to the user.
ErrValidation describes an error when validating service's input parameters its Err will get returned to the user.
IDNamePair stores an E4 client ID and names, omitting the key.
# Interfaces
E4 describe the available methods on the E4 service.