weatherserver

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure

New prepares an implementation of the Weather service for registration.

handler := WeatherHandler{}
dispatcher.Register(weatherserver.New(handler))

Types

type Interface

type Interface interface {
	Check(
		ctx context.Context,
	) (string, error)
}

Interface is the server-side interface for the Weather service.

Jump to

Keyboard shortcuts

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