Documentation ¶
Overview ¶
Copyright (c) 2020 rookie-ninja
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2020 rookie-ninja ¶
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2020 rookie-ninja ¶
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2020 rookie-ninja ¶
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Index ¶
- func NewGinEntries(path string, factory *rk_query.EventFactory, logger *zap.Logger) map[string]*GinEntry
- type GinEntry
- func (entry *GinEntry) Bootstrap(event rk_query.Event)
- func (entry *GinEntry) GetName() string
- func (entry *GinEntry) GetPort() uint64
- func (entry *GinEntry) GetRouter() *gin.Engine
- func (entry *GinEntry) GetSWEntry() *swEntry
- func (entry *GinEntry) GetServer() *http.Server
- func (entry *GinEntry) GetTlsEntry() *tlsEntry
- func (entry *GinEntry) GetType() string
- func (entry *GinEntry) IsSWEnabled() bool
- func (entry *GinEntry) IsTlsEnabled() bool
- func (entry *GinEntry) Shutdown(event rk_query.Event)
- func (entry *GinEntry) String() string
- func (entry *GinEntry) Wait(draining time.Duration)
- type GinEntryOption
- func WithEnableCommonService(enable bool) GinEntryOption
- func WithEventFactory(factory *rk_query.EventFactory) GinEntryOption
- func WithInterceptors(inters ...gin.HandlerFunc) GinEntryOption
- func WithLogger(logger *zap.Logger) GinEntryOption
- func WithName(name string) GinEntryOption
- func WithPort(port uint64) GinEntryOption
- func WithRouter(router *gin.Engine) GinEntryOption
- func WithSWEntry(sw *swEntry) GinEntryOption
- func WithTlsEntry(tls *tlsEntry) GinEntryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GinEntry ¶
type GinEntry struct {
// contains filtered or unexported fields
}
func NewGinEntry ¶
func NewGinEntry(opts ...GinEntryOption) *GinEntry
func (*GinEntry) GetSWEntry ¶
func (entry *GinEntry) GetSWEntry() *swEntry
func (*GinEntry) GetTlsEntry ¶
func (entry *GinEntry) GetTlsEntry() *tlsEntry
func (*GinEntry) IsSWEnabled ¶ added in v1.1.3
func (*GinEntry) IsTlsEnabled ¶ added in v1.1.3
type GinEntryOption ¶
type GinEntryOption func(*GinEntry)
func WithEnableCommonService ¶ added in v1.1.1
func WithEnableCommonService(enable bool) GinEntryOption
func WithEventFactory ¶
func WithEventFactory(factory *rk_query.EventFactory) GinEntryOption
func WithInterceptors ¶
func WithInterceptors(inters ...gin.HandlerFunc) GinEntryOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) GinEntryOption
func WithName ¶
func WithName(name string) GinEntryOption
func WithPort ¶
func WithPort(port uint64) GinEntryOption
func WithRouter ¶
func WithRouter(router *gin.Engine) GinEntryOption
func WithSWEntry ¶
func WithSWEntry(sw *swEntry) GinEntryOption
func WithTlsEntry ¶
func WithTlsEntry(tls *tlsEntry) GinEntryOption
Click to show internal directories.
Click to hide internal directories.