Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 614 Bytes

File metadata and controls

38 lines (23 loc) · 614 Bytes

UserMetaService

A velocity which will be handling user meta data

Functions

Add

Creates meta data for a user and adds it into database.

_, err := client.Add(ctx, &proto.Identifier{UserID: "user id"})

Get

Finds and returns meta data of a user from database.

metaData, err := client.Get(ctx, &proto.Identifier{UserID: "user id"})

Activate

Sets user status as verified.

_, err := client.Activate(ctx, &proto.Identifier{UserID: "user id"})

Delete

Sets user status as deleted.

_, err := client.Delete(ctx, &proto.Identifier{UserID: "user id"})