hello

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AmericanEnglish    = "en-US"
	BritishEnglish     = "en-GB"
	EuropeanSpanish    = "es-ES"
	Finnish            = "fi"
	French             = "fr"
	Japanese           = "ja"
	SimplifiedChinese  = "zh-Hans"
	SupportedLanguages = []string{
		AmericanEnglish,
		BritishEnglish,
		EuropeanSpanish,
		Finnish,
		French,
		Japanese,
		SimplifiedChinese,
	}
)

Functions

This section is empty.

Types

type Hello

type Hello struct {
	Balancer lb.Balancer
	Logger   *zap.Logger
}

func (*Hello) Greeting

func (s *Hello) Greeting(message *Message, reply *string) (err error)

func (*Hello) Healthcheck

func (s *Hello) Healthcheck(requestID string, reply *bool) (err error)

type Message

type Message struct {
	RequestID string
	UserID    string
	Language  string
	Name      string
	Metadata  map[string]string
}

Jump to

Keyboard shortcuts

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