1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-17 17:44:30 +02:00
go-micro/api/server/server.go

16 lines
295 B
Go
Raw Normal View History

2019-06-03 18:44:43 +01:00
// Package server provides an API gateway server which handles inbound requests
package server
import (
"net/http"
)
2022-09-30 16:27:07 +02:00
// Server serves api requests.
2019-06-03 18:44:43 +01:00
type Server interface {
Address() string
Init(opts ...Option) error
Handle(path string, handler http.Handler)
Start() error
Stop() error
}