github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/monitor/remoteapi/server/interfaces.go (about) 1 package server 2 3 import ( 4 "context" 5 ) 6 7 // APIServer is the main interface of the API server. 8 // Allows to create mock functions for testing. 9 type APIServer interface { 10 // Run runs an API server 11 Run(ctx context.Context) error 12 }