code: func rpcAuthorityKind(a backend.Authority) auth.RPCAuthorityKind {
  	switch a {
  	case backend.AsAnonymous:
  		return auth.NoAuth
  	case backend.AsService:
  		return auth.AsSelf
  	case backend.AsUser:
  		return auth.AsUser
  	default:
  		panic(fmt.Errorf("unknown config Authority (%d)", a))
  	}
  }
docs: // rpcAuthorityKind returns the RPC authority associated with this authority
  // level.