service

package
v0.0.0-...-d3bb3ff Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHishoCoreService

func NewHishoCoreService(serv *service2.Service) api.HishoCoreServiceServer

NewHishoCoreService creates new server

Types

type HishoCoreService

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

HishoCoreService handles stuff

func (*HishoCoreService) AddTask

func (hs *HishoCoreService) AddTask(ctx context.Context, request *api.AddTaskRequest) (*api.Task, error)

AddTask adds new task

func (*HishoCoreService) ChangeTaskStatus

func (hs *HishoCoreService) ChangeTaskStatus(ctx context.Context, request *api.ChangeTaskStatusRequest) (*api.Task, error)

ChangeTaskStatus implements api.HishoCoreServiceServer

func (*HishoCoreService) EditTask

func (hs *HishoCoreService) EditTask(ctx context.Context, apiTask *api.Task) (*api.Task, error)

EditTask implements api.HishoCoreServiceServer

func (*HishoCoreService) GetTasksByTerm

func (hs *HishoCoreService) GetTasksByTerm(ctx context.Context, request *api.TaskRequest) (*api.TasksResponse, error)

GetTasksByTerm gets tasks for terms (today, week, other etc.)

func (*HishoCoreService) Ping

func (hs *HishoCoreService) Ping(ctx context.Context, request *api.PingRequest) (*api.PingResponse, error)

Ping returns "pong" if ping is pinged

Jump to

Keyboard shortcuts

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