package admin
import "google.golang.org/grpc/internal/admin"
Package admin contains internal implementation for admin service.
Index ¶
- func AddService(f func(grpc.ServiceRegistrar) (func(), error))
- func Register(s grpc.ServiceRegistrar) (cleanup func(), _ error)
Functions ¶
func AddService ¶
func AddService(f func(grpc.ServiceRegistrar) (func(), error))
AddService adds a service to the list of admin services.
NOTE: this function must only be called during initialization time (i.e. in an init() function), and is not thread-safe.
If multiple services with the same service name are added (e.g. two services for `grpc.channelz.v1.Channelz`), the server will panic on `Register()`.
func Register ¶
func Register(s grpc.ServiceRegistrar) (cleanup func(), _ error)
Register registers the set of admin services to the given server.
Source Files ¶
admin.go
- Version
- v1.71.1 (latest)
- Published
- Mar 28, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 8 hours ago –
Tools for package owners.