From 0cf299db6f09704e91573d42f8bbec99a3b902d1 Mon Sep 17 00:00:00 2001 From: 6543 <6543@noreply.gitea.io> Date: Thu, 30 Jan 2020 14:02:52 +0000 Subject: [PATCH] Add ListOptions struct (#249) same struct as in models/list_options.go add mising license header add ListOptions struct Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/249 Reviewed-by: Andrew Thornton Reviewed-by: lafriks --- gitea/list_options.go | 11 +++++++++++ gitea/user_search.go | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 gitea/list_options.go diff --git a/gitea/list_options.go b/gitea/list_options.go new file mode 100644 index 0000000..dae89e8 --- /dev/null +++ b/gitea/list_options.go @@ -0,0 +1,11 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package gitea + +// ListOptions options for using Gitea's API pagination +type ListOptions struct { + Page int + PageSize int +} diff --git a/gitea/user_search.go b/gitea/user_search.go index 65ab980..5785bd7 100644 --- a/gitea/user_search.go +++ b/gitea/user_search.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + package gitea import "fmt"