service

package
v0.0.0-...-019b488 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker struct {
	HealthCheck func() error
}

HealthChecker the health checker

func (*HealthChecker) Check

Check implements the health check interface, which directly returns to health status. There are also more complex health check strategies, such as returning based on server load.

func (*HealthChecker) Watch

Watch not yet implemented

type ToDoServiceServer

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

ToDoServiceServer manages the todos list

func NewToDoServiceServer

func NewToDoServiceServer(ctx context.Context, url string) (*ToDoServiceServer, error)

NewToDoServiceServer TODO

func (*ToDoServiceServer) Close

func (s *ToDoServiceServer) Close()

Close TODO

func (*ToDoServiceServer) Create

Create a todo

func (*ToDoServiceServer) Delete

Delete a todo

func (*ToDoServiceServer) HealthChecher

func (s *ToDoServiceServer) HealthChecher() func() error

HealthChecher the checker

func (*ToDoServiceServer) Read

Read a todo

func (*ToDoServiceServer) Search

Search todos

func (*ToDoServiceServer) Update

Update a todo

Jump to

Keyboard shortcuts

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