Documentation
¶
Index ¶
- Constants
- Variables
- func GetCtlLivenessCmd() *cobra.Command
- func GetCtlReadinessCmd() *cobra.Command
- func GetCtlStartupCmd() *cobra.Command
- func GetGrpcLivenessCmd() *cobra.Command
- func GetGrpcReadinessCmd() *cobra.Command
- func GetGrpcStartupCmd() *cobra.Command
- func GetHttpLivenessCmd() *cobra.Command
- func GetHttpReadinessCmd() *cobra.Command
- func GetHttpStartupCmd() *cobra.Command
- func NewCtlCommand() *ctl
- func NewGinCommand() *ginCommand
- func NewGrpcCmd(opts ...GrpcOptFunc) *grpcCmd
- func NewHealthCmd(use string) *healthCmd
- type Commander
- type GrpcOptFunc
- type GrpcOptions
- type Priority
- type StopFunc
- type StopStep
Constants ¶
View Source
const ( WebServerAddr = "GAPI_ADDR" GinUse = "gin" )
View Source
const CtlUse = "ctl"
View Source
const (
GrpcUse = "grpc"
)
View Source
const (
HealthProjectName = "healthx"
)
Variables ¶
View Source
var ( DefaultGrpcUse = "grpc" DefaultShort = "Run grpc server" )
Functions ¶
func GetCtlLivenessCmd ¶
func GetCtlReadinessCmd ¶
func GetCtlStartupCmd ¶
func GetGrpcLivenessCmd ¶
func GetGrpcReadinessCmd ¶
func GetGrpcStartupCmd ¶
func GetHttpLivenessCmd ¶
func GetHttpReadinessCmd ¶
func GetHttpStartupCmd ¶
func NewCtlCommand ¶
func NewCtlCommand() *ctl
func NewGinCommand ¶
func NewGinCommand() *ginCommand
func NewHealthCmd ¶
func NewHealthCmd(use string) *healthCmd
Types ¶
type GrpcOptFunc ¶
type GrpcOptFunc func(*GrpcOptions)
GrpcOptFunc set GrpcOptions fileds
func WithGrpcServerOpt ¶
func WithGrpcServerOpt(serverOpts ...grpc.ServerOption) GrpcOptFunc
WithGrpcServerOpt set ServerOpts filed
type GrpcOptions ¶
type GrpcOptions struct {
Cfg server.Cfg
ServerOpts []grpc.ServerOption
// contains filtered or unexported fields
}
GrpcOptions grpc options
Click to show internal directories.
Click to hide internal directories.