 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package defaults initializes the defaults GRPC clients and servers used by services
Index ¶
- Variables
- func Broker() broker.Broker
- func InitClient(opt ...func() client.Option)
- func InitHTTPServer(opt ...func() server.Option)
- func InitServer(opt ...func() server.Option)
- func NetworkClientWrapper(c client.Client) client.Client
- func NewClient(new ...client.Option) client.Client
- func NewHTTPServer(new ...server.Option) server.Server
- func NewServer(new ...server.Option) server.Server
- func Registry() registry.Registry
- func RuntimeIsCluster() bool
- func RuntimeIsFork() bool
- func StartupRegistry() registry.Registry
- func Transport() transport.Transport
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewClient ¶
NewClient returns a client attached to the defaults
func NewServer ¶
NewServer returns a server attached to the defaults
func RuntimeIsCluster ¶
func RuntimeIsCluster() bool
RuntimeIsCluster checks if the runtime is configured to use cluster routes
Types ¶
       Source Files
      ¶
      Source Files
      ¶
    
- defaults.go
- network-errors.go
- options.go
- runtime.go
       Directories
      ¶
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| api
       | |
| 
          
            stan
            
            
          
           Package stan provides a NATS Streaming broker | Package stan provides a NATS Streaming broker | 
| client
       | |
| 
          
            grpc
            
            
          
           Package grpc provides a gRPC client | Package grpc provides a gRPC client | 
| Package router provides api service routing | Package router provides api service routing | 
| 
          
            cache
            
            
          
           Package cache is a caching selector. | Package cache is a caching selector. | 
| 
          
            grpc
            
            
          
           Package grpc provides a grpc server | Package grpc provides a grpc server | 
| 
          
            http
            
            
          
           Package http implements a go-micro.Server | Package http implements a go-micro.Server | 
| transport
       | |
 Click to show internal directories. 
   Click to hide internal directories.