...

Source file src/edge-infra.dev/pkg/edge/auth-proxy/interceptor/operation.go

Documentation: edge-infra.dev/pkg/edge/auth-proxy/interceptor

     1  package interceptor
     2  
     3  type op int
     4  
     5  const (
     6  	Query op = iota
     7  	Mutation
     8  	Path
     9  	Subscription
    10  	Default
    11  )
    12  
    13  func (o op) String() string {
    14  	switch o {
    15  	case Query:
    16  		return "query"
    17  	case Mutation:
    18  		return "mutation"
    19  	case Subscription:
    20  		return "subscription"
    21  	case Default:
    22  		return "default"
    23  	default:
    24  		return ""
    25  	}
    26  }
    27  

View as plain text