handler

package
v0.0.0-...-a2be96e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinAllowedClient = "0.0.3"

Functions

func NewVersionChecker

func NewVersionChecker() grpc.UnaryServerInterceptor

func UnsupportedHandler

func UnsupportedHandler(handler func() error) grpc.UnaryClientInterceptor

Types

type AppConverter

type AppConverter struct{}

type Handler

type Handler struct {
	AppConverter
	// contains filtered or unexported fields
}

func New

func New(apps domain.AppRepository, builds domain.BuildRepository, auth *auth.Service, bucket *blob.Bucket) *Handler

func (*Handler) CheckAuth

func (*Handler) Login

func (*Handler) Logout

func (*Handler) PushBuild

func (*Handler) UserID

func (h *Handler) UserID(ctx context.Context) (domain.UserID, error)

type VersionChecker

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

func (*VersionChecker) Intercept

func (c *VersionChecker) Intercept(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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