service

package
v0.0.0-...-a6f2505 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Check() error
	Read(key string) (string, error)
	WriteWithTTL(key, value string, ttl int) error
}

type Service

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

func New

func New(storage Storage, cache Cache) (*Service, error)

func (*Service) Hello

func (s *Service) Hello(name string) (*models.HelloMessage, error)

type Storage

type Storage interface {
	Check() error
	Hello(name string) (*models.HelloMessage, error)
}

Directories

Path Synopsis
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

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