web/api/v2/api.go
func (api *API) RegisterGRPC(srv *grpc.Server) {
	if api.enableAdmin {
		pb.RegisterAdminServer(srv, NewAdmin(api.db))
	} else {
		pb.RegisterAdminServer(srv, &AdminDisabled{})
	}
}
func (api *API) RegisterGRPC(srv *grpc.Server) {
	if api.enableAdmin {
		pb.RegisterAdminServer(srv, NewAdmin(api.db))
	} else {
		pb.RegisterAdminServer(srv, &AdminDisabled{})
	}
}
func ( api * API ) RegisterGRPC ( srv * grpc . Server ) { if api . enableAdmin { pb . RegisterAdminServer ( srv , NewAdmin ( api . db ) ) } else { pb . RegisterAdminServer ( srv , & AdminDisabled { } ) } }
// RegisterGRPC registers all API services with the given server.
RegisterGRPC registers all API services with the given server .