Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
dataCallBack -> DataCallback
Browse files Browse the repository at this point in the history
Signed-off-by: zychen5186 <[email protected]>
  • Loading branch information
zychen5186 committed Apr 27, 2024
1 parent 0c5ffd2 commit 3d44a80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/bubbletea/bubbletea_pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (m pageModel) View() string {
return b.String()
}

func Paginator(_listHeader []printer.Column, _callback dataCallback) {
func Paginator(_listHeader []printer.Column, _callback DataCallback) {
listHeader = _listHeader
callback = _callback

Expand Down
4 changes: 2 additions & 2 deletions pkg/bubbletea/bubbletea_pagination_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/golang/protobuf/proto"
)

type dataCallback func(filter filters.Filters) []proto.Message
type DataCallback func(filter filters.Filters) []proto.Message

type printTableProto struct{ proto.Message }

Expand All @@ -33,7 +33,7 @@ var (
lastBatchIndex = 0
batchLen = make(map[int]int)
// Callback function used to fetch data from the module that called bubbletea pagination.
callback dataCallback
callback DataCallback
// The header of the table
listHeader []printer.Column
// Avoid fetching back and forward at the same time
Expand Down

0 comments on commit 3d44a80

Please sign in to comment.