1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-30 10:10:44 +02:00

Update api.go

This commit is contained in:
Asim Aslam 2022-07-02 13:50:45 +01:00 committed by GitHub
parent 667ee9b85e
commit 73dc3723c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,13 +18,13 @@ type Api interface {
Init(...Option) error
// Get the options
Options() Options
// Register a http handler
// Register an endpoint
Register(*Endpoint) error
// Register a route
// Deregister an endpoint
Deregister(*Endpoint) error
// Run the api
Run(context.Context) error
// Implemenation of api
// Implemenation of api e.g http
String() string
}