server

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

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

Go to latest
Published: Jul 7, 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 Currency

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

Currency is a gRPC server it implements the methods defined by the CurrencyServer interface

func NewCurrency

func NewCurrency(l hclog.Logger) *Currency

NewCurrency creates a new Currency server

func (*Currency) GetRate

GetRate implements the CurrencyServer GetRate method and returns the currency exchange rate for the two given currencies.

Jump to

Keyboard shortcuts

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