serviceHello

package
v0.0.0-...-4fe0d4a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package serviceHello is service to echo any text thrown to it Steps on creating service 1. Define the service interface : HelloService 2. Create a private struct which implements the HelloService interface : helloService 3. Create initializer function returning the interface instance : New 4. Create your business handler function, in this case : Hello 4. Create endpoint function factory for Hello function : MakeHelloEndpoint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHelloEndpoint

func MakeHelloEndpoint(helloService HelloService) endpoint.Endpoint

MakeHelloEndpoint create helloService's hello endpoint

Types

type HelloService

type HelloService interface {
	Hello(c context.Context, text string) (string, error)
}

HelloService is interface for this service

func New

func New() HelloService

New Creating new HelloService instance

Jump to

Keyboard shortcuts

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