Documentation ¶
Index ¶
- Variables
- type Access
- type AccessConfig
- type AuthConfig
- type Authenticate
- type BasicAuth
- type BasicCredential
- type BulkWriteFilter
- func (bw *BulkWriteFilter) Context() context.Context
- func (bw *BulkWriteFilter) RecvMsg(m interface{}) error
- func (bw *BulkWriteFilter) SendHeader(m metadata.MD) error
- func (bw *BulkWriteFilter) SendMsg(m interface{}) error
- func (bw *BulkWriteFilter) SetHeader(m metadata.MD) error
- func (bw *BulkWriteFilter) SetTrailer(m metadata.MD)
- type CasbinAccess
- type Config
- type MetaData
- type NullAccess
- type NullAuth
- type Operation
- type ProxyAuth
- type StreamOutWrapper
- func (bw *StreamOutWrapper[X]) Context() context.Context
- func (bw *StreamOutWrapper[X]) RecvMsg(m interface{}) error
- func (bw *StreamOutWrapper[X]) SendHeader(m metadata.MD) error
- func (bw *StreamOutWrapper[X]) SendMsg(m interface{}) error
- func (bw *StreamOutWrapper[X]) SetHeader(m metadata.MD) error
- func (bw *StreamOutWrapper[X]) SetTrailer(m metadata.MD)
Constants ¶
This section is empty.
Variables ¶
View Source
var MethodMap = map[string]Operation{ "/gripql.Query/Traversal": Query, "/gripql.Query/GetVertex": Read, "/gripql.Query/GetEdge": Read, "/gripql.Query/GetTimestamp": Read, "/gripql.Query/GetSchema": Read, "/gripql.Query/GetMapping": Read, "/gripql.Query/ListGraphs": Read, "/gripql.Query/ListIndices": Read, "/gripql.Query/ListLabels": Read, "/gripql.Job/Submit": Exec, "/gripql.Job/ListJobs": Read, "/gripql.Job/SearchJobs": Read, "/gripql.Job/DeleteJob": Write, "/gripql.Job/GetJob": Read, "/gripql.Job/ViewJob": Read, "/gripql.Job/ResumeJob": Exec, "/gripql.Edit/AddVertex": Write, "/gripql.Edit/AddEdge": Write, "/gripql.Edit/BulkAdd": Write, "/gripql.Edit/AddGraph": Write, "/gripql.Edit/DeleteGraph": Write, "/gripql.Edit/DeleteVertex": Write, "/gripql.Edit/DeleteEdge": Write, "/gripql.Edit/AddIndex": Write, "/gripql.Edit/AddSchema": Write, "/gripql.Edit/AddMapping": Write, "/gripql.Edit/SampleSchema": Write, "/gripql.Configure/StartPlugin": Admin, "/gripql.Configure/ListPlugin": Admin, "/gripql.Configure/ListDrivers": Admin, }
Functions ¶
This section is empty.
Types ¶
type AccessConfig ¶
type AccessConfig struct { Null *NullAccess Casbin *CasbinAccess }
type AuthConfig ¶
type Authenticate ¶
type BasicAuth ¶
type BasicAuth []BasicCredential
type BasicCredential ¶
BasicCredential describes a username and password for use with Funnel's basic auth.
type BulkWriteFilter ¶
type BulkWriteFilter struct { SS grpc.ServerStream User string Access Access }
func (*BulkWriteFilter) Context ¶
func (bw *BulkWriteFilter) Context() context.Context
func (*BulkWriteFilter) RecvMsg ¶
func (bw *BulkWriteFilter) RecvMsg(m interface{}) error
func (*BulkWriteFilter) SendHeader ¶
func (bw *BulkWriteFilter) SendHeader(m metadata.MD) error
func (*BulkWriteFilter) SendMsg ¶
func (bw *BulkWriteFilter) SendMsg(m interface{}) error
func (*BulkWriteFilter) SetTrailer ¶
func (bw *BulkWriteFilter) SetTrailer(m metadata.MD)
type CasbinAccess ¶
type Config ¶
type Config struct { Auth *AuthConfig Access *AccessConfig // contains filtered or unexported fields }
func (*Config) StreamInterceptor ¶
func (c *Config) StreamInterceptor() grpc.StreamServerInterceptor
func (*Config) UnaryInterceptor ¶
func (c *Config) UnaryInterceptor() grpc.UnaryServerInterceptor
type NullAccess ¶
type NullAccess struct{}
type StreamOutWrapper ¶
type StreamOutWrapper[X any] struct { Request X SS grpc.ServerStream }
func NewStreamOutWrapper ¶
func NewStreamOutWrapper[X any](inSS grpc.ServerStream) (*StreamOutWrapper[X], error)
func (*StreamOutWrapper[X]) Context ¶
func (bw *StreamOutWrapper[X]) Context() context.Context
func (*StreamOutWrapper[X]) RecvMsg ¶
func (bw *StreamOutWrapper[X]) RecvMsg(m interface{}) error
func (*StreamOutWrapper[X]) SendHeader ¶
func (bw *StreamOutWrapper[X]) SendHeader(m metadata.MD) error
func (*StreamOutWrapper[X]) SendMsg ¶
func (bw *StreamOutWrapper[X]) SendMsg(m interface{}) error
func (*StreamOutWrapper[X]) SetHeader ¶
func (bw *StreamOutWrapper[X]) SetHeader(m metadata.MD) error
func (*StreamOutWrapper[X]) SetTrailer ¶
func (bw *StreamOutWrapper[X]) SetTrailer(m metadata.MD)
Click to show internal directories.
Click to hide internal directories.