grpcserver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeRounding = time.Duration(5 * time.Minute)
)

Functions

func Register

func Register(gRPC *grpc.Server, godairy Godairy)

Register registers the Godairy service with the gRPC server.

Parameters:

gRPC - The gRPC server to which the service is registered.
godairy - The implementation of the Godairy service to be registered.

Types

type Godairy

type Godairy interface {
	NewTask(
		ctx context.Context,
		taskDateTime time.Time,
		taskBody string,
	) (uuid uuid.UUID, err error)
	NewDate(
		ctx context.Context,
		date time.Time,
	) (dairyDate *models.Date, err error)
	Date(
		ctx context.Context,
		date time.Time,
	) (dairyDate *models.Date, err error)
	Task(
		ctx context.Context,
		task models.Task,
	) (tasks []*models.Task, err error)
	DeleteTask(
		ctx context.Context,
		task_uuid uuid.UUID,
	) (err error)
}

Jump to

Keyboard shortcuts

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