mongoadapter

package
v0.0.0-...-d841f61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

mongoadapter contains casbin mongo adapter. Adapter loads policy from mongo collection and transform result into casbin format. Refactor mongo collection and use casbin mongo adapter after all API is migrated to Go.

Index

Constants

View Source
const (
	CasbinPtypePolicy = "p"
	CasbinPtypeRole   = "g"
)

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(db mongo.DbClient) persist.Adapter

NewAdapter creates mongo adapter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL