Documentation
¶
Index ¶
- func AddRoutes(sg *echo.Group)
- func Create(ctx context.ServiceContext, client *clients.GQLClient, ...) error
- func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, ...) error
- func DecryptAsymmetricallyAnonymous(public, private, org_key []byte) ([]byte, error)
- func DecryptMemberKey(ctx context.ServiceContext, client *clients.GQLClient, user_id string, ...) ([]byte, error)
- func DecryptPayload(payload *commons.Payload, password string) error
- func GenerateKeyPair(password string) (*commons.IssueKeyPairResponse, error)
- func GetByUserID(ctx context.ServiceContext, client *clients.GQLClient, user_id string) (*commons.Key, error)
- func GetPublicKey(c echo.Context) error
- func GetPublicKeyByUserEmail(ctx context.ServiceContext, client *clients.GQLClient, email string) ([]byte, error)
- func GetPublicKeyByUserID(ctx context.ServiceContext, client *clients.GQLClient, user_id string) ([]byte, error)
- func OpenAsymmetricallyAnonymous(message []byte, publicKey, privateKey [commons.KEY_BYTES]byte) ([]byte, error)
- func OpenSymmetrically(message []byte, key [commons.KEY_BYTES]byte) ([]byte, error)
- func SealAsymmetricallyAnonymous(message []byte, key [commons.KEY_BYTES]byte) ([]byte, error)
- func SealSymmetrically(message []byte, key [commons.KEY_BYTES]byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.ServiceContext, client *clients.GQLClient, options *commons.CreateOptions) error
func CreateWithUserID ¶
func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *commons.CreateWithUserIDOptions) error
func DecryptAsymmetricallyAnonymous ¶
Decrypt the org's symmetric key with your local public-private key.
func DecryptMemberKey ¶
func DecryptMemberKey(ctx context.ServiceContext, client *clients.GQLClient, user_id string, options *commons.DecryptOptions) ([]byte, error)
func GenerateKeyPair ¶
func GenerateKeyPair(password string) (*commons.IssueKeyPairResponse, error)
func GetByUserID ¶
func GetPublicKey ¶
func GetPublicKey(c echo.Context) error
func GetPublicKeyByUserEmail ¶
func GetPublicKeyByUserID ¶
func OpenSymmetrically ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.