19 lines
650 B
Protocol Buffer
19 lines
650 B
Protocol Buffer
syntax = "proto3";
|
|
package common.pagination.v1;
|
|
option go_package = "github.com/tech/sendico/pkg/proto/common/pagination/v1;paginationv1";
|
|
|
|
// CursorPageRequest carries opaque cursor-based pagination parameters.
|
|
message CursorPageRequest {
|
|
// cursor is the opaque continuation token from a previous response.
|
|
string cursor = 1;
|
|
// limit is the maximum number of items to return per page.
|
|
int32 limit = 2;
|
|
}
|
|
|
|
// CursorPageResponse carries the opaque token for the next page.
|
|
message CursorPageResponse {
|
|
// next_cursor is the opaque token to fetch the next page; empty when no
|
|
// more results are available.
|
|
string next_cursor = 1;
|
|
}
|