project

package
v0.0.0-...-588ec63 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package project provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type Project

type Project struct {
	CreatedAt   time.Time  `json:"created_at" mapstructure:"created_at"`
	Description *string    `json:"description,omitempty" mapstructure:"description"`
	EndDate     *time.Time `json:"end_date,omitempty" mapstructure:"end_date"`
	ProjectId   int64      `json:"project_id" mapstructure:"project_id"`
	ProjectName string     `json:"project_name" mapstructure:"project_name"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
	UpdatedAt   time.Time  `json:"updated_at" mapstructure:"updated_at"`
}

Project defines model for project.

type ProjectCreateRequest

type ProjectCreateRequest struct {
	Description *string    `json:"description,omitempty" mapstructure:"description"`
	EndDate     *time.Time `json:"end_date,omitempty" mapstructure:"end_date"`
	ProjectName string     `json:"project_name" mapstructure:"project_name"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
}

ProjectCreateRequest defines model for project_create_request.

type ProjectCreateResponse

type ProjectCreateResponse struct {
	Project Project `json:"project"`
}

ProjectCreateResponse defines model for project_create_response.

type ProjectDeleteRequest

type ProjectDeleteRequest struct {
	ProjectId int64 `json:"project_id" mapstructure:"project_id"`
}

ProjectDeleteRequest defines model for project_delete_request.

type ProjectDeleteResponse

type ProjectDeleteResponse struct {
	Message string `json:"message" mapstructure:"message"`
}

ProjectDeleteResponse defines model for project_delete_response.

type ProjectMember

type ProjectMember struct {
	CreatedAt time.Time `json:"created_at" mapstructure:"created_at"`
	MemberId  int64     `json:"member_id" mapstructure:"member_id"`
	ProjectId int64     `json:"project_id" mapstructure:"project_id"`
	Role      string    `json:"role" mapstructure:"role"`
	UpdatedAt time.Time `json:"updated_at" mapstructure:"updated_at"`
}

ProjectMember defines model for project_member.

type ProjectMemberCreateRequest

type ProjectMemberCreateRequest struct {
	MemberId  int64  `json:"member_id" mapstructure:"member_id"`
	ProjectId int64  `json:"project_id" mapstructure:"project_id"`
	Role      string `json:"role" mapstructure:"role"`
}

ProjectMemberCreateRequest defines model for project_member_create_request.

type ProjectMemberCreateResponse

type ProjectMemberCreateResponse struct {
	ProjectMember ProjectMember `json:"project_member"`
}

ProjectMemberCreateResponse defines model for project_member_create_response.

type ProjectMemberDeleteRequest

type ProjectMemberDeleteRequest struct {
	MemberId  int64 `json:"member_id" mapstructure:"member_id"`
	ProjectId int64 `json:"project_id" mapstructure:"project_id"`
}

ProjectMemberDeleteRequest defines model for project_member_delete_request.

type ProjectMemberDeleteResponse

type ProjectMemberDeleteResponse struct {
	Message string `json:"message" mapstructure:"message"`
}

ProjectMemberDeleteResponse defines model for project_member_delete_response.

type ProjectMemberRequest

type ProjectMemberRequest struct {
	MemberId  int64 `json:"member_id" mapstructure:"member_id"`
	ProjectId int64 `json:"project_id" mapstructure:"project_id"`
}

ProjectMemberRequest defines model for project_member_request.

type ProjectMemberResponse

type ProjectMemberResponse struct {
	ProjectMember ProjectMember `json:"project_member"`
}

ProjectMemberResponse defines model for project_member_response.

type ProjectMemberUpdateRequest

type ProjectMemberUpdateRequest struct {
	MemberId  int64   `json:"member_id" mapstructure:"member_id"`
	ProjectId int64   `json:"project_id" mapstructure:"project_id"`
	Role      *string `json:"role,omitempty" mapstructure:"role"`
}

ProjectMemberUpdateRequest defines model for project_member_update_request.

type ProjectMemberUpdateResponse

type ProjectMemberUpdateResponse struct {
	ProjectMember ProjectMember `json:"project_member"`
}

ProjectMemberUpdateResponse defines model for project_member_update_response.

type ProjectMembersRequest

type ProjectMembersRequest struct {
	ProjectId int64 `json:"project_id" mapstructure:"project_id"`
}

ProjectMembersRequest defines model for project_members_request.

type ProjectMembersResponse

type ProjectMembersResponse struct {
	ProjectMembers []ProjectMember `json:"project_members" mapstructure:"project_members"`
}

ProjectMembersResponse defines model for project_members_response.

type ProjectRequest

type ProjectRequest struct {
	ProjectId int64 `json:"project_id" mapstructure:"project_id"`
}

ProjectRequest defines model for project_request.

type ProjectResponse

type ProjectResponse struct {
	Project Project `json:"project"`
}

ProjectResponse defines model for project_response.

type ProjectUpdateRequest

type ProjectUpdateRequest struct {
	Description *string    `json:"description,omitempty" mapstructure:"description"`
	EndDate     *time.Time `json:"end_date,omitempty" mapstructure:"end_date"`
	ProjectId   int64      `json:"project_id" mapstructure:"project_id"`
	ProjectName *string    `json:"project_name,omitempty" mapstructure:"project_name"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
}

ProjectUpdateRequest defines model for project_update_request.

type ProjectUpdateResponse

type ProjectUpdateResponse struct {
	Project Project `json:"project"`
}

ProjectUpdateResponse defines model for project_update_response.

type ProjectsRequest

type ProjectsRequest struct {
	ProjectIds []int64 `json:"project_ids" mapstructure:"project_ids"`
}

ProjectsRequest defines model for projects_request.

type ProjectsResponse

type ProjectsResponse struct {
	Projects []Project `json:"projects" mapstructure:"projects"`
}

ProjectsResponse defines model for projects_response.

Jump to

Keyboard shortcuts

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