trpc.group/trpc-go/trpc-go@v1.0.3/naming/registry/README.md (about)

     1  # Service Registry
     2  
     3  Service Registry registers service nodes and reports healthy by interacting with service registry center.
     4  
     5  ## Service Registry Interface
     6  ```go
     7  // Registry is the service registry interface.
     8  type Registry interface {
     9  	Register(service string, opt ...Option) error
    10  	Deregister(service string) error
    11  }
    12  ```
    13  The custom implementation should refer to the implementation inside that project.
    14