backend

package
v0.0.0-...-ddee7fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package backend contains implemtation of milo RPC services.

Index

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

ListBuilders implements milopb.MiloInternal service

func (*MiloInternalService) QueryBlamelist

QueryBlamelist implements milopb.MiloInternal service

func (*MiloInternalService) QueryRecentBuilds

QueryRecentBuilds implements milopb.MiloInternal service

type PageSizeLimiter

type PageSizeLimiter struct {
	Max     int32
	Default int32
}

func (*PageSizeLimiter) Adjust

func (psl *PageSizeLimiter) Adjust(pageSize int32) int32

Adjust the requested pageSize according to PageSizeLimiter.Max and PageSizeLimiter.Default as necessary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL