Documentation
¶
Index ¶
- func Create(ctx context.ServiceContext, client *clients.GQLClient, ...) error
- func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, ...) error
- func GetByUserID(ctx context.ServiceContext, client *clients.GQLClient, user_id string) (*commons.Key, 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)
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
Create a new key
func CreateWithUserID ¶
func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *commons.CreateWithUserIDOptions) error
Create a new key with User ID
func GetByUserID ¶
func GetByUserID(ctx context.ServiceContext, client *clients.GQLClient, user_id string) (*commons.Key, error)
Get a key by User ID
func GetPublicKeyByUserEmail ¶
func GetPublicKeyByUserEmail(ctx context.ServiceContext, client *clients.GQLClient, email string) ([]byte, error)
Fetches only the public key by User's email
func GetPublicKeyByUserID ¶
func GetPublicKeyByUserID(ctx context.ServiceContext, client *clients.GQLClient, user_id string) ([]byte, error)
Fetches only the public key by User ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.