17 lines
232 B
Go
17 lines
232 B
Go
|
|
package server
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"net/url"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Server interface {
|
||
|
|
Start(context.Context) error
|
||
|
|
Stop(context.Context) error
|
||
|
|
}
|
||
|
|
|
||
|
|
// Endpointer is registry endpoint.
|
||
|
|
type Endpointer interface {
|
||
|
|
Endpoint() (*url.URL, error)
|
||
|
|
}
|