Documentation ¶
Index ¶
- Variables
- func FindSwaggerJSONFiles(baseDir string) ([]string, error)
- func GenerateSwaggerHTML(outputPath string, jsonFiles ...string) error
- func GetClientConnection(serverAddr string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func InstallProtocPlugins()
- func StartGrpcServer(port string, services ...Services) error
- type Services
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ServerEndpoint = "localhost:8080"
)
Functions ¶
func FindSwaggerJSONFiles ¶
FindSwaggerJSONFiles finds all files in the base directory that have ".swagger.json" in their names.
func GenerateSwaggerHTML ¶
GenerateSwaggerHTML generates an HTML Swagger file based on multiple JSON files.
func GetClientConnection ¶
func GetClientConnection(serverAddr string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func InstallProtocPlugins ¶
func InstallProtocPlugins()
func StartGrpcServer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.