MCPcopy
hub / github.com/apache/casbin / Adapter

Struct Adapter

persist/string-adapter/adapter.go:29–31  ·  view source on GitHub ↗

Adapter is the string adapter for Casbin. It can load policy from string or save policy to string.

Source from the content-addressed store, hash-verified

27// Adapter is the string adapter for Casbin.
28// It can load policy from string or save policy to string.
29type Adapter struct {
30 Line string
31}
32
33// NewAdapter is the constructor for Adapter.
34func NewAdapter(line string) *Adapter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected