github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/enums/api_operator_attr.go (about)

     1  package enums
     2  
     3  //go:generate toolkit gen enum ApiOperatorAttr
     4  type ApiOperatorAttr uint8
     5  
     6  const (
     7  	API_OPERATOR_ATTR_UNKNOWN     ApiOperatorAttr = iota
     8  	API_OPERATOR_ATTR__COMMON                     // common operator for all users with authorization, used for default attr
     9  	API_OPERATOR_ATTR__INTERNAL                   // internal for debugging or maintaining only
    10  	API_OPERATOR_ATTR__ADMIN_ONLY                 // only admin can access
    11  	API_OPERATOR_ATTR__PUBLIC                     // can access without authorization
    12  )