handler

package
v0.0.0-...-69889a8 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityRow

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

func (*ActivityRow) DateTime

func (r *ActivityRow) DateTime() string

func (*ActivityRow) Text

func (r *ActivityRow) Text() string

type FrontServer

type FrontServer struct {
	ActivityClient pbActivity.ActivityServiceClient
	ProjectClient  pbProject.ProjectServiceClient
	TaskClient     pbTask.TaskServiceClient
	UserClient     pbUser.UserServiceClient
	SessionStore   session.Store
}

func (*FrontServer) CreateProject

func (s *FrontServer) CreateProject(w http.ResponseWriter, r *http.Request)

func (*FrontServer) CreateTask

func (s *FrontServer) CreateTask(
	w http.ResponseWriter, r *http.Request)

func (*FrontServer) Login

func (s *FrontServer) Login(w http.ResponseWriter, r *http.Request)

func (*FrontServer) Logout

func (s *FrontServer) Logout(w http.ResponseWriter, r *http.Request)

func (*FrontServer) Signup

func (s *FrontServer) Signup(
	w http.ResponseWriter, r *http.Request)

func (*FrontServer) UpdateProject

func (s *FrontServer) UpdateProject(w http.ResponseWriter, r *http.Request)

func (*FrontServer) UpdateTask

func (s *FrontServer) UpdateTask(w http.ResponseWriter, r *http.Request)

func (*FrontServer) ViewHome

func (s *FrontServer) ViewHome(
	w http.ResponseWriter, r *http.Request)

func (*FrontServer) ViewLogin

func (s *FrontServer) ViewLogin(w http.ResponseWriter, r *http.Request)

func (*FrontServer) ViewProject

func (s *FrontServer) ViewProject(w http.ResponseWriter, r *http.Request)

func (*FrontServer) ViewSignup

func (s *FrontServer) ViewSignup(w http.ResponseWriter, r *http.Request)

type HomeContent

type HomeContent struct {
	PageName     string
	IsLoggedIn   bool
	TaskStatuses []TaskStatus
	UserEmail    string
	ActivityRows []*ActivityRow
	Projects     []*pbProject.Project
	TaskRows     []*TaskRow
}

type ProjectContent

type ProjectContent struct {
	PageName     string
	IsLoggedIn   bool
	TaskStatuses []TaskStatus
	UserEmail    string
	Project      *pbProject.Project
	TaskRows     []*TaskRow
}

type TaskRow

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

func (*TaskRow) ID

func (r *TaskRow) ID() uint64

func (*TaskRow) Name

func (r *TaskRow) Name() string

func (*TaskRow) ProjectName

func (r *TaskRow) ProjectName() string

func (*TaskRow) Status

func (r *TaskRow) Status() int32

func (*TaskRow) StatusName

func (r *TaskRow) StatusName() string

type TaskStatus

type TaskStatus pbTask.Status

func (TaskStatus) Status

func (s TaskStatus) Status() int32

func (*TaskStatus) StatusName

func (s *TaskStatus) StatusName() string

Jump to

Keyboard shortcuts

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