postgres

package
v0.0.0-...-11943fb Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnectionPool

func NewConnectionPool(ctx context.Context, addr string, minConn, maxConn int32) (*pgxpool.Pool, error)

Types

type HTTPOperations

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

func NewHTTPOperations

func NewHTTPOperations(db db) *HTTPOperations

func (*HTTPOperations) CreateHTTPOperation

func (o *HTTPOperations) CreateHTTPOperation(ctx context.Context, operation entities.HTTPOperation) (entities.HTTPOperation, error)

func (*HTTPOperations) GetHTTPOperationByProjectIDAndHTTPMethodAndRoute

func (o *HTTPOperations) GetHTTPOperationByProjectIDAndHTTPMethodAndRoute(
	ctx context.Context,
	projectID uuid.UUID,
	httpMethod entities.HTTPMethod,
	route string,
) (entities.HTTPOperation, error)

type Projects

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

func NewProjects

func NewProjects(db db) *Projects

func (*Projects) CreateProject

func (p *Projects) CreateProject(ctx context.Context, project entities.Project) (entities.Project, error)

func (*Projects) GetProjectByID

func (p *Projects) GetProjectByID(ctx context.Context, projectID uuid.UUID) (entities.Project, error)

Jump to

Keyboard shortcuts

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