1
2
3
4
5
6
7
8
9
10
11
12
13 | factory := func(state *state.State, _ *common.Resources, authorizer common.Authorizer) (server.API, error) { if !authorizer.AuthUnitAgent() { return nil, common.ErrPerm } return server.NewAPI(state) } common.RegisterStandardFacade( process.ComponentName, 0, factory, ) |