Skip to content

Commit

Permalink
add voucher struct to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ramadani committed Jun 2, 2021
1 parent 8dcf694 commit ba5ae49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ Expiration is used to set how long the duration of a quota usage is stored in Re

For example, we will use claim voucher use case.

```go
type Voucher struct {
ID string
Code string
Limit int64
Usage int64
}
```

To get quota limit and usage, we create code using `GetQuota` interface

**Get quota limit**
Expand Down

0 comments on commit ba5ae49

Please sign in to comment.