Documentation ¶
Overview ¶
Package backend contains implemtation of milo RPC services.
Index ¶
- type MiloInternalService
- func (s *MiloInternalService) GetProjectCfg(ctx context.Context, req *milopb.GetProjectCfgRequest) (_ *milo.Project, err error)
- func (s *MiloInternalService) ListBuilders(ctx context.Context, req *milopb.ListBuildersRequest) (_ *milopb.ListBuildersResponse, err error)
- func (s *MiloInternalService) QueryBlamelist(ctx context.Context, req *milopb.QueryBlamelistRequest) (_ *milopb.QueryBlamelistResponse, err error)
- func (s *MiloInternalService) QueryRecentBuilds(ctx context.Context, req *milopb.QueryRecentBuildsRequest) (_ *milopb.QueryRecentBuildsResponse, err error)
- type PageSizeLimiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiloInternalService ¶
type MiloInternalService struct { // GetGitClient returns a git client for the given context. GetGitClient func(c context.Context) (git.Client, error) }
MiloInternalService implements milopb.MiloInternal
func (*MiloInternalService) GetProjectCfg ¶
func (s *MiloInternalService) GetProjectCfg(ctx context.Context, req *milopb.GetProjectCfgRequest) (_ *milo.Project, err error)
GetProjectCfg implements milopb.MiloInternal service
func (*MiloInternalService) ListBuilders ¶
func (s *MiloInternalService) ListBuilders(ctx context.Context, req *milopb.ListBuildersRequest) (_ *milopb.ListBuildersResponse, err error)
ListBuilders implements milopb.MiloInternal service
func (*MiloInternalService) QueryBlamelist ¶
func (s *MiloInternalService) QueryBlamelist(ctx context.Context, req *milopb.QueryBlamelistRequest) (_ *milopb.QueryBlamelistResponse, err error)
QueryBlamelist implements milopb.MiloInternal service
func (*MiloInternalService) QueryRecentBuilds ¶
func (s *MiloInternalService) QueryRecentBuilds(ctx context.Context, req *milopb.QueryRecentBuildsRequest) (_ *milopb.QueryRecentBuildsResponse, err error)
QueryRecentBuilds implements milopb.MiloInternal service
type PageSizeLimiter ¶
func (*PageSizeLimiter) Adjust ¶
func (psl *PageSizeLimiter) Adjust(pageSize int32) int32
Adjust the requested pageSize according to PageSizeLimiter.Max and PageSizeLimiter.Default as necessary.
Click to show internal directories.
Click to hide internal directories.