Documentation ¶ Index ¶ func Book(ctx context.Context, port int, bookingDuration int64, host, secret string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Book ¶ func Book(ctx context.Context, port int, bookingDuration int64, host, secret string) Book creates a new bookingstore server listening at host:port, It accepts login tokens signed with secret, and returns a token that can be used to make up to 2 bookings at any time within the bookingDuration seconds. Types ¶ This section is empty. Source Files ¶ View all Source files book.go Click to show internal directories. Click to hide internal directories.