mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-18 22:17:44 +02:00
Update api.go
This commit is contained in:
@ -18,13 +18,13 @@ type Api interface {
|
|||||||
Init(...Option) error
|
Init(...Option) error
|
||||||
// Get the options
|
// Get the options
|
||||||
Options() Options
|
Options() Options
|
||||||
// Register a http handler
|
// Register an endpoint
|
||||||
Register(*Endpoint) error
|
Register(*Endpoint) error
|
||||||
// Register a route
|
// Deregister an endpoint
|
||||||
Deregister(*Endpoint) error
|
Deregister(*Endpoint) error
|
||||||
// Run the api
|
// Run the api
|
||||||
Run(context.Context) error
|
Run(context.Context) error
|
||||||
// Implemenation of api
|
// Implemenation of api e.g http
|
||||||
String() string
|
String() string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user