Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 638 Bytes

File metadata and controls

39 lines (26 loc) · 638 Bytes

UserExtraService

A velocity which will be handling user extra data.

Functions

Add

Takes in user extra data and adds it into database.

response, err := client.Add(ctx, &userData)

Get

Takes in user id and returns the extra data.

response, err := client.Get(ctx, &proto.GetRequest{UserID: "UserID"})

Update

Takes in user id and update. then causes that update.

response, err := client.Update(ctx, &proto.UpdateRequest{
    UserID: "UserID",
    Update: Update,
})

Validate

Takes in user data and returns if it is valid.

response, _ := client.Validate(ctx, UserData)