server

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(logger *zap.Logger, db database.DB) *Server

func (*Server) CreateOrganization

func (s *Server) CreateOrganization(ctx echo.Context, params api.CreateOrganizationParams) error

(POST /organizations)

func (*Server) DeleteOrganization

func (s *Server) DeleteOrganization(ctx echo.Context, name string) error

(DELETE /organizations/{name})

func (*Server) FindOrganization

func (s *Server) FindOrganization(ctx echo.Context, name string) error

(GET /organizations/{name})

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, port int) error

func (*Server) UpdateOrganization

func (s *Server) UpdateOrganization(ctx echo.Context, name string, params api.UpdateOrganizationParams) error

(PUT /organizations/{name})

Jump to

Keyboard shortcuts

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