Documentation ¶
Index ¶
- func HasDeletePermission(ac *pb.AccessControl) bool
- func HasGlobalCRUDPermission(ac *pb.AccessControl) bool
- func HasGlobalIteratePermission(ac *pb.AccessControl) bool
- func HasGlobalRetrievePermission(ac *pb.AccessControl) bool
- func HasGlobalSearchPermission(ac *pb.AccessControl) bool
- func HasReadPermission(ac *pb.AccessControl) bool
- func HasUpdatePermission(ac *pb.AccessControl) bool
- func HasWritePermission(ac *pb.AccessControl) bool
- func IsNamespaceValid(namespace []byte) bool
- func IsPasswordValid(password string) bool
- func IsUsernameValid(username string) bool
- func MkPath(path string) bool
- func NewPermission(read bool, write bool, update bool, delete bool, globalSearch bool, ...) uint64
- func UUIDToString(ub []byte) string
- type LowerCamelCaseMarshaller
- type LowerSnakeCaseMarshaller
- type RequestOptions
- type RequestOptionsCompatibility
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasDeletePermission ¶
func HasDeletePermission(ac *pb.AccessControl) bool
HasDeletePermission checks availability of delete permission
func HasGlobalCRUDPermission ¶
func HasGlobalCRUDPermission(ac *pb.AccessControl) bool
HasGlobalCRUDPermission checks availability of global CRUD permission
func HasGlobalIteratePermission ¶
func HasGlobalIteratePermission(ac *pb.AccessControl) bool
HasGlobalIteratePermission checks availability of global iterate permission
func HasGlobalRetrievePermission ¶
func HasGlobalRetrievePermission(ac *pb.AccessControl) bool
HasGlobalRetrievePermission checks availability of global retrieve permission
func HasGlobalSearchPermission ¶
func HasGlobalSearchPermission(ac *pb.AccessControl) bool
HasGlobalSearchPermission checks availability of global search permission
func HasReadPermission ¶
func HasReadPermission(ac *pb.AccessControl) bool
HasReadPermission checks availability of read permission
func HasUpdatePermission ¶
func HasUpdatePermission(ac *pb.AccessControl) bool
HasUpdatePermission checks availability of update permission
func HasWritePermission ¶
func HasWritePermission(ac *pb.AccessControl) bool
HasWritePermission checks availability of write permission
func IsNamespaceValid ¶
func IsPasswordValid ¶
func IsUsernameValid ¶
func NewPermission ¶
func NewPermission(read bool, write bool, update bool, delete bool, globalSearch bool, globalIterate bool, globalRetrieve bool, globalCRUD bool) uint64
NewPermission creates permission unsigned integer based on parameters boolean flag
func UUIDToString ¶
Types ¶
type LowerCamelCaseMarshaller ¶
type LowerCamelCaseMarshaller struct {
Value interface{}
}
func (LowerCamelCaseMarshaller) MarshalJSON ¶
func (s LowerCamelCaseMarshaller) MarshalJSON() ([]byte, error)
type LowerSnakeCaseMarshaller ¶
type LowerSnakeCaseMarshaller struct {
Value interface{}
}
func (LowerSnakeCaseMarshaller) MarshalJSON ¶
func (c LowerSnakeCaseMarshaller) MarshalJSON() ([]byte, error)
type RequestOptions ¶
type RequestOptions struct { Query string `json:"query" url:"query" schema:"query"` Variables map[string]interface{} `json:"variables" url:"variables" schema:"variables"` OperationName string `json:"operationName" url:"operationName" schema:"operationName"` }
func ParseGraphQLQuery ¶
func ParseGraphQLQuery(data []byte) *RequestOptions
type RequestOptionsCompatibility ¶
type RequestOptionsCompatibility struct { Query string `json:"query" url:"query" schema:"query"` Variables string `json:"variables" url:"variables" schema:"variables"` OperationName string `json:"operationName" url:"operationName" schema:"operationName"` }
a workaround for getting`variables` as a JSON string