models

package
v0.0.0-...-b938584 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateJobRequest

type CreateJobRequest struct {
	Name         string
	Description  string
	ScheduleTime time.Time
	JobType      int32
	JobData      string
}

func (*CreateJobRequest) ToProto

func (cjr *CreateJobRequest) ToProto() *proto.CreateJobRequest

type CreateJobResponse

type CreateJobResponse struct {
	Id string
}

func CreateJobResponseFromProto

func CreateJobResponseFromProto(p *proto.CreateJobResponse) *CreateJobResponse

type CreateUserRequest

type CreateUserRequest struct {
	Name     string
	Email    string
	Password string
	Role     int32
}

func (*CreateUserRequest) ToProto

func (cur *CreateUserRequest) ToProto() *proto.CreateUserRequest

type CreateUserResponse

type CreateUserResponse struct {
	Message string
}

func CreateUserResponseFromProto

func CreateUserResponseFromProto(p *proto.CreateUserResponse) *CreateUserResponse

type DeleteJobResponse

type DeleteJobResponse struct {
	Message string
}

func DeleteJobResponseFromProto

func DeleteJobResponseFromProto(p *proto.DeleteJobResponse) DeleteJobResponse

type GetJobRequest

type GetJobRequest struct {
	Id string
}

func (*GetJobRequest) ToProto

func (gjr *GetJobRequest) ToProto() *proto.GetJobRequest

type GetUserResponse

type GetUserResponse struct {
	Id    int32
	Name  string
	Email string
}

func GetUserResponseFromProto

func GetUserResponseFromProto(p *proto.GetUserResponse) *GetUserResponse

type Job

type Job struct {
	Id           string
	Name         string
	Description  string
	ScheduleTime time.Time
	CreatedTime  time.Time
	UpdatedTime  time.Time
	JobStatus    int32
	JobType      int32
	JobData      string
}

func JobFromProto

func JobFromProto(p *proto.Job) *Job

type ListJobsResponse

type ListJobsResponse struct {
	TotalCount int64
	TotalPages int64
	Page       int64
	Size       int64
	HasMore    bool
	Jobs       []Job
}

func ListJobsResponseFromProto

func ListJobsResponseFromProto(p *proto.ListJobsResponse) *ListJobsResponse

type ListReportResponse

type ListReportResponse struct {
	TotalCount int64
	TotalPages int64
	Page       int64
	Size       int64
	HasMore    bool
	Reports    []Report
}

func ListReportResponseFromProto

func ListReportResponseFromProto(p *proto.ListReportResponse) *ListReportResponse

type ListReportsRequest

type ListReportsRequest struct {
	Filter int32
	Page   int64
	Size   int64
}

type ListUsersResponse

type ListUsersResponse struct {
	TotalCount int64
	TotalPages int64
	Page       int64
	Size       int64
	HasMore    bool
	Users      []GetUserResponse
}

func ListUsersResponseFromProto

func ListUsersResponseFromProto(p *proto.ListUsersResponse) *ListUsersResponse

type LogOutRequest

type LogOutRequest struct {
	RefreshToken string
	AccessToken  string
}

func (*LogOutRequest) ToProto

func (lor *LogOutRequest) ToProto() *proto.LogOutRequest

type LogOutResponse

type LogOutResponse struct {
	Message string
}

type LoginUserRequest

type LoginUserRequest struct {
	Email    string
	Password string
}

func (*LoginUserRequest) ToProto

func (cur *LoginUserRequest) ToProto() *proto.LoginUserRequest

type LoginUserResponse

type LoginUserResponse struct {
	Message string
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string
}

func (*RefreshTokenRequest) ToProto

type RefreshTokenResponse

type RefreshTokenResponse struct {
	Message string
}

type Report

type Report struct {
	Id          string
	Topic       string
	CreatedTime time.Time
	ReportData  string
}

func ReportFromProto

func ReportFromProto(p *proto.Report) *Report

type UpdateJobRequest

type UpdateJobRequest struct {
	Id           string
	Name         string
	Description  string
	ScheduleTime time.Time
	JobType      int32
	JobData      string
}

func (*UpdateJobRequest) ToProto

func (ujr *UpdateJobRequest) ToProto() *proto.UpdateJobRequest

type UpdateJobResponse

type UpdateJobResponse struct {
	Message string
}

func UpdateJobResponseFromProto

func UpdateJobResponseFromProto(p *proto.UpdateJobResponse) *UpdateJobResponse

Directories

Path Synopsis
job
report
user

Jump to

Keyboard shortcuts

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