routes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	logger *zap.Logger,
	svc *service_codebase.Service,
) func(c *gin.Context)

func Get

func Get(
	repo db.CodebaseRepository,
	codebaseUserRepo db.CodebaseUserRepository,
	logger *zap.Logger,
	userRepo db_user.Repository,
	executorProvider executor.Provider,
) gin.HandlerFunc

func Invite

func Invite(codebaseService *service_codebase.Service, authService *service_auth.Service) func(c *gin.Context)

func JoinCodebase

func JoinCodebase(logger *zap.Logger, repo db.CodebaseRepository, codeBaseUserRepo db.CodebaseUserRepository, eventSender events.EventSender) func(c *gin.Context)

func JoinGetCodebase

func JoinGetCodebase(logger *zap.Logger, repo db.CodebaseRepository) func(c *gin.Context)

Types

type CreateRequest

type CreateRequest struct {
	Name        string `json:"name"`
	Description string `json:"description"` // TODO: remove this field, it's unused
}

type InviteUserRequest

type InviteUserRequest struct {
	UserEmail string `json:"user_email" binding:"required"`
}

Jump to

Keyboard shortcuts

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