handler

package
v0.0.0-...-7d5229d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitalyCommand

type GitalyCommand struct {
	Config      *config.Config
	ServiceName string
	Address     string
	Token       string
}

func (*GitalyCommand) RunGitalyCommand

func (gc *GitalyCommand) RunGitalyCommand(handler GitalyHandlerFunc) error

RunGitalyCommand provides a bootstrap for Gitaly commands executed through GitLab-Shell. It ensures that logging, tracing and other common concerns are configured before executing the `handler`.

type GitalyConn

type GitalyConn struct {
	// contains filtered or unexported fields
}

type GitalyHandlerFunc

type GitalyHandlerFunc func(ctx context.Context, client *grpc.ClientConn) (int32, error)

GitalyHandlerFunc implementations are responsible for making an appropriate Gitaly call using the provided client and context and returning an error from the Gitaly call.

Jump to

Keyboard shortcuts

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