1
0
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:
Asim Aslam
2022-07-02 13:50:45 +01:00
committed by GitHub
parent 667ee9b85e
commit 73dc3723c7

View File

@ -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
} }