Documentation ¶
Index ¶
- Variables
- type App
- func (a *App) Close()
- func (a *App) Config(key string) interface{}
- func (a *App) ConfigCenter(namespaceId string, nodes []*ConfigCenterNote) error
- func (a *App) ConfigRegister(key string, name string, path string, loadLocal bool, obj interface{}, ...) error
- func (a *App) Context() context.Context
- func (a *App) DBMongoAllClose()
- func (a *App) DBMongoInstance(name ...string) *mongo.Client
- func (a *App) DBMongoRegister(name string, user string, password string, addr []string, dbName string, ...) error
- func (a *App) DBMySqlAllClose()
- func (a *App) DBMySqlInstance(name ...string) *mysql.Client
- func (a *App) DBMySqlRegister(name string, user string, password string, addr string, port uint16, ...) error
- func (a *App) DBRedisAllClose()
- func (a *App) DBRedisInstance(name ...string) *redis.Client
- func (a *App) DBRedisRegister(name string, password string, addr string, port uint16, db int, active int, ...) error
- func (a *App) Discovery(namespaceId string, nodes []*DiscoveryNode) error
- func (a *App) DiscoveryCancel() error
- func (a *App) DiscoveryClose()
- func (a *App) DiscoveryClusterName() string
- func (a *App) DiscoveryRegister() error
- func (a *App) DiscoveryStart(ws *sync.WaitGroup) bool
- func (a *App) Logger(path string, level logs.Level, json bool, callerSkip int) error
- func (a *App) MQConsumerAllClose()
- func (a *App) MQConsumerAllStart(ws *sync.WaitGroup) bool
- func (a *App) MQConsumerInstance(name ...string) mq.Consumer
- func (a *App) MQConsumerRegister(name string, accessKey string, secretKey string, nameServer []string, ...) error
- func (a *App) MQProducerAllClose()
- func (a *App) MQProducerAllStart(ws *sync.WaitGroup) bool
- func (a *App) MQProducerInstance(name ...string) mq.Producer
- func (a *App) MQProducerRegister(name string, accessKey string, secretKey string, nameServer []string, ...) error
- func (a *App) NetHttpAllClose()
- func (a *App) NetHttpAllStart(ws *sync.WaitGroup) bool
- func (a *App) NetHttpRegister(name string, ip string, port uint16, discoverySoftState *bool, ...) error
- func (a *App) NetRpcAllClose()
- func (a *App) NetRpcAllStart(ws *sync.WaitGroup) bool
- func (a *App) NetRpcClient(groupName string, name string, serviceName string, ...) (*netRpc.Client, error)
- func (a *App) NetRpcClientClose()
- func (a *App) NetRpcClientWithHashSelector() NetRpcClientOptionFunc
- func (a *App) NetRpcClientWithSoftState() NetRpcClientOptionFunc
- func (a *App) NetRpcRegister(name string, ip string, port uint16, groupName string, ...) error
- func (a *App) ProxyConfig() proxy.Config
- func (a *App) ProxyDBMongo() proxy.DBMongo
- func (a *App) ProxyDBMySQL() proxy.DBMySQL
- func (a *App) ProxyDBRedis() proxy.DBRedis
- func (a *App) ProxyDiscovery() proxy.Discovery
- func (a *App) ProxyMQ() proxy.MQ
- func (a *App) ProxyRpcClient(groupName ...string) proxy.RpcClientPool
- func (a *App) Run() error
- func (a *App) Signal()
- func (a *App) SignalStart(ws *sync.WaitGroup) bool
- type ConfigCenterNote
- type DiscoveryNode
- type MQConsumerSubscribe
- type NetRpcClientOption
- type NetRpcClientOptionFunc
- type ProxyConfig
- type ProxyDBMongo
- type ProxyDBMySQL
- type ProxyDBRedis
- type ProxyDiscovery
- type ProxyMQ
- type ProxyRpcClientPool
- func (prc *ProxyRpcClientPool) GetClient(name string, serviceName string) (proxy.RpcClient, error)
- func (prc *ProxyRpcClientPool) GetClientHash(name string, serviceName string) (proxy.RpcClient, error)
- func (prc *ProxyRpcClientPool) GetClientSoftState(name string, serviceName string) (proxy.RpcClient, error)
- type RegisterCenter
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) ConfigCenter ¶
func (a *App) ConfigCenter(namespaceId string, nodes []*ConfigCenterNote) error
func (*App) ConfigRegister ¶
func (*App) DBMongoAllClose ¶
func (a *App) DBMongoAllClose()
func (*App) DBMongoRegister ¶
func (*App) DBMySqlAllClose ¶
func (a *App) DBMySqlAllClose()
func (*App) DBMySqlRegister ¶
func (*App) DBRedisAllClose ¶
func (a *App) DBRedisAllClose()
func (*App) DBRedisRegister ¶
func (*App) DiscoveryCancel ¶
func (*App) DiscoveryClose ¶
func (a *App) DiscoveryClose()
func (*App) DiscoveryClusterName ¶
func (*App) DiscoveryRegister ¶
func (*App) MQConsumerAllClose ¶
func (a *App) MQConsumerAllClose()
func (*App) MQConsumerRegister ¶
func (*App) MQProducerAllClose ¶
func (a *App) MQProducerAllClose()
func (*App) MQProducerRegister ¶
func (*App) NetHttpAllClose ¶
func (a *App) NetHttpAllClose()
func (*App) NetHttpRegister ¶
func (*App) NetRpcAllClose ¶
func (a *App) NetRpcAllClose()
func (*App) NetRpcClient ¶
func (*App) NetRpcClientClose ¶
func (a *App) NetRpcClientClose()
func (*App) NetRpcClientWithHashSelector ¶
func (a *App) NetRpcClientWithHashSelector() NetRpcClientOptionFunc
func (*App) NetRpcClientWithSoftState ¶
func (a *App) NetRpcClientWithSoftState() NetRpcClientOptionFunc
func (*App) NetRpcRegister ¶
func (*App) ProxyConfig ¶
func (*App) ProxyDBMongo ¶
func (*App) ProxyDBMySQL ¶
func (*App) ProxyDBRedis ¶
func (*App) ProxyDiscovery ¶
func (*App) ProxyRpcClient ¶
func (a *App) ProxyRpcClient(groupName ...string) proxy.RpcClientPool
type ConfigCenterNote ¶
type ConfigCenterNote = config.RemoteNode
type DiscoveryNode ¶
type MQConsumerSubscribe ¶
type NetRpcClientOption ¶
type NetRpcClientOption struct {
SelectMode netRpc.ClientSelectMode
}
type NetRpcClientOptionFunc ¶
type NetRpcClientOptionFunc func(*NetRpcClientOption)
type ProxyConfig ¶
type ProxyConfig struct {
// contains filtered or unexported fields
}
func (*ProxyConfig) GetCfg ¶
func (pc *ProxyConfig) GetCfg(key ...string) interface{}
type ProxyDBMongo ¶
type ProxyDBMongo struct {
// contains filtered or unexported fields
}
type ProxyDBMySQL ¶
type ProxyDBMySQL struct {
// contains filtered or unexported fields
}
type ProxyDBRedis ¶
type ProxyDBRedis struct {
// contains filtered or unexported fields
}
type ProxyDiscovery ¶
type ProxyDiscovery struct {
// contains filtered or unexported fields
}
func (*ProxyDiscovery) ClusterName ¶
func (pd *ProxyDiscovery) ClusterName() string
func (*ProxyDiscovery) Instance ¶
func (pd *ProxyDiscovery) Instance() naming_client.INamingClient
type ProxyMQ ¶
type ProxyMQ struct {
// contains filtered or unexported fields
}
type ProxyRpcClientPool ¶
type ProxyRpcClientPool struct {
// contains filtered or unexported fields
}
func (*ProxyRpcClientPool) GetClientHash ¶
func (*ProxyRpcClientPool) GetClientSoftState ¶
type RegisterCenter ¶
type RegisterCenter = config.RegisterCenter
Source Files ¶
Click to show internal directories.
Click to hide internal directories.