task

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 task 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 Task

type Task 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"`
	Priority    *string    `json:"priority,omitempty" mapstructure:"priority"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
	TaskGroupId int64      `json:"task_group_id" mapstructure:"task_group_id"`
	TaskId      int64      `json:"task_id" mapstructure:"task_id"`
	TaskName    string     `json:"task_name" mapstructure:"task_name"`
	UpdatedAt   time.Time  `json:"updated_at" mapstructure:"updated_at"`
}

Task defines model for task.

type TaskCreateRequest

type TaskCreateRequest struct {
	Description *string    `json:"description,omitempty" mapstructure:"description"`
	EndDate     *time.Time `json:"end_date,omitempty" mapstructure:"end_date"`
	Priority    *string    `json:"priority,omitempty" mapstructure:"priority"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
	TaskGroupId int64      `json:"task_group_id" mapstructure:"task_group_id"`
	TaskName    string     `json:"task_name" mapstructure:"task_name"`
}

TaskCreateRequest defines model for task_create_request.

type TaskCreateResponse

type TaskCreateResponse struct {
	Task Task `json:"task"`
}

TaskCreateResponse defines model for task_create_response.

type TaskDeleteRequest

type TaskDeleteRequest struct {
	TaskId int64 `json:"task_id" mapstructure:"task_id"`
}

TaskDeleteRequest defines model for task_delete_request.

type TaskDeleteResponse

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

TaskDeleteResponse defines model for task_delete_response.

type TaskGroup

type TaskGroup 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"`
	GroupName   string     `json:"group_name" mapstructure:"group_name"`
	Priority    *string    `json:"priority,omitempty" mapstructure:"priority"`
	ProjectId   int64      `json:"project_id" mapstructure:"project_id"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
	TaskGroupId int64      `json:"task_group_id" mapstructure:"task_group_id"`
	UpdatedAt   time.Time  `json:"updated_at" mapstructure:"updated_at"`
}

TaskGroup defines model for task_group.

type TaskGroupCreateRequest

type TaskGroupCreateRequest struct {
	Description *string    `json:"description,omitempty" mapstructure:"description"`
	EndDate     *time.Time `json:"end_date,omitempty" mapstructure:"end_date"`
	GroupName   string     `json:"group_name" mapstructure:"group_name"`
	Priority    *string    `json:"priority,omitempty" mapstructure:"priority"`
	ProjectId   int64      `json:"project_id" mapstructure:"project_id"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
}

TaskGroupCreateRequest defines model for task_group_create_request.

type TaskGroupCreateResponse

type TaskGroupCreateResponse struct {
	TaskGroup TaskGroup `json:"task_group"`
}

TaskGroupCreateResponse defines model for task_group_create_response.

type TaskGroupDeleteRequest

type TaskGroupDeleteRequest struct {
	TaskGroupId int64 `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupDeleteRequest defines model for task_group_delete_request.

type TaskGroupDeleteResponse

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

TaskGroupDeleteResponse defines model for task_group_delete_response.

type TaskGroupMember

type TaskGroupMember struct {
	CreatedAt   time.Time `json:"created_at" mapstructure:"created_at"`
	MemberId    int64     `json:"member_id" mapstructure:"member_id"`
	Role        string    `json:"role" mapstructure:"role"`
	TaskGroupId int64     `json:"task_group_id" mapstructure:"task_group_id"`
	UpdatedAt   time.Time `json:"updated_at" mapstructure:"updated_at"`
}

TaskGroupMember defines model for task_group_member.

type TaskGroupMemberCreateRequest

type TaskGroupMemberCreateRequest struct {
	MemberId    int64  `json:"member_id" mapstructure:"member_id"`
	Role        string `json:"role" mapstructure:"role"`
	TaskGroupId int64  `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupMemberCreateRequest defines model for task_group_member_create_request.

type TaskGroupMemberCreateResponse

type TaskGroupMemberCreateResponse struct {
	TaskGroupMember TaskGroupMember `json:"task_group_member"`
}

TaskGroupMemberCreateResponse defines model for task_group_member_create_response.

type TaskGroupMemberDeleteRequest

type TaskGroupMemberDeleteRequest struct {
	MemberId    int64 `json:"member_id" mapstructure:"member_id"`
	TaskGroupId int64 `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupMemberDeleteRequest defines model for task_group_member_delete_request.

type TaskGroupMemberDeleteResponse

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

TaskGroupMemberDeleteResponse defines model for task_group_member_delete_response.

type TaskGroupMemberRequest

type TaskGroupMemberRequest struct {
	MemberId    int64 `json:"member_id" mapstructure:"member_id"`
	TaskGroupId int64 `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupMemberRequest defines model for task_group_member_request.

type TaskGroupMemberResponse

type TaskGroupMemberResponse struct {
	TaskGroupMember TaskGroupMember `json:"task_group_member"`
}

TaskGroupMemberResponse defines model for task_group_member_response.

type TaskGroupMemberUpdateRequest

type TaskGroupMemberUpdateRequest struct {
	MemberId    int64   `json:"member_id" mapstructure:"member_id"`
	Role        *string `json:"role,omitempty" mapstructure:"role"`
	TaskGroupId int64   `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupMemberUpdateRequest defines model for task_group_member_update_request.

type TaskGroupMemberUpdateResponse

type TaskGroupMemberUpdateResponse struct {
	TaskGroupMember TaskGroupMember `json:"task_group_member"`
}

TaskGroupMemberUpdateResponse defines model for task_group_member_update_response.

type TaskGroupMembersRequest

type TaskGroupMembersRequest struct {
	TaskGroupId int64 `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupMembersRequest defines model for task_group_members_request.

type TaskGroupMembersResponse

type TaskGroupMembersResponse struct {
	TaskGroupMembers []TaskGroupMember `json:"task_group_members" mapstructure:"task_group_members"`
}

TaskGroupMembersResponse defines model for task_group_members_response.

type TaskGroupRequest

type TaskGroupRequest struct {
	TaskGroupId int64 `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupRequest defines model for task_group_request.

type TaskGroupResponse

type TaskGroupResponse struct {
	TaskGroup TaskGroup `json:"task_group"`
}

TaskGroupResponse defines model for task_group_response.

type TaskGroupUpdateRequest

type TaskGroupUpdateRequest struct {
	Description *string    `json:"description,omitempty" mapstructure:"description"`
	EndDate     *time.Time `json:"end_date,omitempty" mapstructure:"end_date"`
	GroupName   *string    `json:"group_name,omitempty" mapstructure:"group_name"`
	Priority    *string    `json:"priority,omitempty" mapstructure:"priority"`
	ProjectId   *int64     `json:"project_id,omitempty" mapstructure:"project_id"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
	TaskGroupId int64      `json:"task_group_id" mapstructure:"task_group_id"`
}

TaskGroupUpdateRequest defines model for task_group_update_request.

type TaskGroupUpdateResponse

type TaskGroupUpdateResponse struct {
	TaskGroup TaskGroup `json:"task_group"`
}

TaskGroupUpdateResponse defines model for task_group_update_response.

type TaskGroupsRequest

type TaskGroupsRequest struct {
	TaskGroupIds []int64 `json:"task_group_ids" mapstructure:"task_group_ids"`
}

TaskGroupsRequest defines model for task_groups_request.

type TaskGroupsResponse

type TaskGroupsResponse struct {
	TaskGroups []TaskGroup `json:"task_groups" mapstructure:"task_groups"`
}

TaskGroupsResponse defines model for task_groups_response.

type TaskMember

type TaskMember struct {
	CreatedAt time.Time `json:"created_at" mapstructure:"created_at"`
	MemberId  int64     `json:"member_id" mapstructure:"member_id"`
	Role      string    `json:"role" mapstructure:"role"`
	TaskId    int64     `json:"task_id" mapstructure:"task_id"`
	UpdatedAt time.Time `json:"updated_at" mapstructure:"updated_at"`
}

TaskMember defines model for task_member.

type TaskMemberCreateRequest

type TaskMemberCreateRequest struct {
	MemberId int64  `json:"member_id" mapstructure:"member_id"`
	Role     string `json:"role" mapstructure:"role"`
	TaskId   int64  `json:"task_id" mapstructure:"task_id"`
}

TaskMemberCreateRequest defines model for task_member_create_request.

type TaskMemberCreateResponse

type TaskMemberCreateResponse struct {
	TaskMember TaskMember `json:"task_member"`
}

TaskMemberCreateResponse defines model for task_member_create_response.

type TaskMemberDeleteRequest

type TaskMemberDeleteRequest struct {
	MemberId int64 `json:"member_id" mapstructure:"member_id"`
	TaskId   int64 `json:"task_id" mapstructure:"task_id"`
}

TaskMemberDeleteRequest defines model for task_member_delete_request.

type TaskMemberDeleteResponse

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

TaskMemberDeleteResponse defines model for task_member_delete_response.

type TaskMemberRequest

type TaskMemberRequest struct {
	MemberId int64 `json:"member_id" mapstructure:"member_id"`
	TaskId   int64 `json:"task_id" mapstructure:"task_id"`
}

TaskMemberRequest defines model for task_member_request.

type TaskMemberResponse

type TaskMemberResponse struct {
	TaskMember TaskMember `json:"task_member"`
}

TaskMemberResponse defines model for task_member_response.

type TaskMemberUpdateRequest

type TaskMemberUpdateRequest struct {
	MemberId int64   `json:"member_id" mapstructure:"member_id"`
	Role     *string `json:"role,omitempty" mapstructure:"role"`
	TaskId   int64   `json:"task_id" mapstructure:"task_id"`
}

TaskMemberUpdateRequest defines model for task_member_update_request.

type TaskMemberUpdateResponse

type TaskMemberUpdateResponse struct {
	TaskMember TaskMember `json:"task_member"`
}

TaskMemberUpdateResponse defines model for task_member_update_response.

type TaskMembersRequest

type TaskMembersRequest struct {
	TaskId int64 `json:"task_id" mapstructure:"task_id"`
}

TaskMembersRequest defines model for task_members_request.

type TaskMembersResponse

type TaskMembersResponse struct {
	TaskMembers []TaskMember `json:"task_members" mapstructure:"task_members"`
}

TaskMembersResponse defines model for task_members_response.

type TaskRequest

type TaskRequest struct {
	TaskId int64 `json:"task_id" mapstructure:"task_id"`
}

TaskRequest defines model for task_request.

type TaskResponse

type TaskResponse struct {
	Task Task `json:"task"`
}

TaskResponse defines model for task_response.

type TaskUpdateRequest

type TaskUpdateRequest struct {
	Description *string    `json:"description,omitempty" mapstructure:"description"`
	EndDate     *time.Time `json:"end_date,omitempty" mapstructure:"end_date"`
	Priority    *string    `json:"priority,omitempty" mapstructure:"priority"`
	StartDate   *time.Time `json:"start_date,omitempty" mapstructure:"start_date"`
	Status      *string    `json:"status,omitempty" mapstructure:"status"`
	TaskGroupId *int64     `json:"task_group_id,omitempty" mapstructure:"task_group_id"`
	TaskId      int64      `json:"task_id" mapstructure:"task_id"`
	TaskName    *string    `json:"task_name,omitempty" mapstructure:"task_name"`
}

TaskUpdateRequest defines model for task_update_request.

type TaskUpdateResponse

type TaskUpdateResponse struct {
	Task Task `json:"task"`
}

TaskUpdateResponse defines model for task_update_response.

type TasksRequest

type TasksRequest struct {
	TaskIds []int64 `json:"task_ids" mapstructure:"task_ids"`
}

TasksRequest defines model for tasks_request.

type TasksResponse

type TasksResponse struct {
	Tasks []Task `json:"tasks" mapstructure:"tasks"`
}

TasksResponse defines model for tasks_response.

Jump to

Keyboard shortcuts

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