package
0.1.82
Repository: https://github.com/golang-tire/pkg.git
Documentation: pkg.go.dev

# Functions

Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
GrpcPort returns a ServerOption that will apply grpcPort option.
HttpPort returns a ServerOption that will apply httpPort option.
MustAsset is like Asset but panics when Asset would return an error.
RegisterController register a controller.
RegisterInterceptors register custom interceptors.
RegisterSwagger register each service paths and definitions to show in final swagger file.
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.
Serve will start http and grpc server on given ports and will use ctx.Done() channel to stop servers.
ServeMuxOptions returns a ServerOption that will apply ServeMuxOptions option for mux.
SwaggerBaseURL returns a ServerOption that will apply swaggerBaseURL option.

# Structs

Interceptor interface provide a way to add custom interceptors for Unary and Stream server.

# Interfaces

Controller interface provide a way for each grpc and rest service to register their services in server.
A ServerOption sets options such as ports, paths parameters, etc.