server

package
v0.0.0-...-4c11209 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultCustomerID TODO NOT THIS.
	DefaultCustomerID = "a4a777ff-fd47-42ab-84b4-1cca19a51f8f"

	// DefaultReporter TODO NOT THIS.
	DefaultReporter = "34a20135-1c9b-4c4d-b590-7771207ed847"

	// DefaultAuthor TODO NOT THIS.
	DefaultAuthor = "3fbecb27-1f23-4ed0-91e4-68f97a1f0364"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents all server handlers.

func NewServer

func NewServer(cfg *conf.Config, stores *store.Stores) (*Server, error)

NewServer new api server.

func (*Server) Comments

func (sv *Server) Comments(ctx echo.Context, projectId string, issueId string, params api.CommentsParams) error

Comments Get a list of Comments. (GET /projects/{project_id}/issues/{issue_id}/comments).

func (*Server) Customers

func (sv *Server) Customers(ctx echo.Context, params api.CustomersParams) error

Customers Get a list of customers. (GET /customers).

func (*Server) GetComment

func (sv *Server) GetComment(ctx echo.Context, projectId string, issueId string, id string) error

GetComment (GET /projects/{project_id}/issues/{issue_id}/comments/{id}).

func (*Server) GetCustomer

func (sv *Server) GetCustomer(ctx echo.Context, id string) error

GetCustomer (GET /customers/{id}).

func (*Server) GetIssue

func (sv *Server) GetIssue(ctx echo.Context, projectId string, id string) error

GetIssue (GET /projects/{project_id}/issues/{id}).

func (*Server) GetProject

func (sv *Server) GetProject(ctx echo.Context, id string) error

GetProject (GET /projects/{id}).

func (*Server) GetUser

func (sv *Server) GetUser(ctx echo.Context, id string) error

GetUser (GET /users/{id}).

func (*Server) Issues

func (sv *Server) Issues(ctx echo.Context, projectId string, params api.IssuesParams) error

Issues Get a list of issues. (GET /projects/{project_id}/issues).

func (*Server) NewComment

func (sv *Server) NewComment(ctx echo.Context, projectId string, issueId string) error

NewComment Create a comment on a issue. (POST /projects/{project_id}/issues/{issue_id}/comments).

func (*Server) NewCustomer

func (sv *Server) NewCustomer(ctx echo.Context) error

NewCustomer Create a customer. (POST /customers).

func (*Server) NewIssue

func (sv *Server) NewIssue(ctx echo.Context, projectId string) error

NewIssue Create a issue. (POST /projects/{project_id}/issues).

func (*Server) NewProject

func (sv *Server) NewProject(ctx echo.Context) error

NewProject Create a project. (POST /projects).

func (*Server) Projects

func (sv *Server) Projects(ctx echo.Context, params api.ProjectsParams) error

Projects Get a list of projects. (GET /projects).

func (*Server) UpdateComment

func (sv *Server) UpdateComment(ctx echo.Context, projectId string, issueId string, id string) error

UpdateComment (PUT /projects/{project_id}/issues/{issue_id}/comments/{id}).

func (*Server) UpdateCustomer

func (sv *Server) UpdateCustomer(ctx echo.Context, id string) error

UpdateCustomer Update a customer. (PUT /customers/{id}).

func (*Server) UpdateIssue

func (sv *Server) UpdateIssue(ctx echo.Context, projectId string, id string) error

UpdateIssue (PUT /projects/{project_id}/issues/{id}).

func (*Server) UpdateProject

func (sv *Server) UpdateProject(ctx echo.Context, id string) error

UpdateProject Update a project. (PUT /projects/{id}).

func (*Server) Users

func (sv *Server) Users(ctx echo.Context, params api.UsersParams) error

Users Get a list of users. (GET /users).

Jump to

Keyboard shortcuts

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