github.com/btccom/go-micro/v2@v2.9.3/api/server/server.go (about) 1 // Package server provides an API gateway server which handles inbound requests 2 package server 3 4 import ( 5 "net/http" 6 ) 7 8 // Server serves api requests 9 type Server interface { 10 Address() string 11 Init(opts ...Option) error 12 Handle(path string, handler http.Handler) 13 Start() error 14 Stop() error 15 }