services

package
v0.0.0-...-56fa2b3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OryClient = InitalizeOryServices()

Functions

func CommentoLogin

func CommentoLogin(c *fiber.Ctx) error

func CreateFile

func CreateFile(c *fiber.Ctx) error

CreateFile sdfs

func SendMail

func SendMail(body string)

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(redisAddress string, password string, ttl time.Duration) (*Cache, error)

func (*Cache) Add

func (c *Cache) Add(ctx context.Context, key string, value interface{})

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, key string) (interface{}, bool)

type Ory

type Ory struct {
	*kratos.OryKratos
	*keto.OryKeto
}

func InitalizeOryServices

func InitalizeOryServices() *Ory

func (*Ory) CreateUser

func (ory *Ory) CreateUser(email string) error

CreateUser sdfsd

func (*Ory) DelegateUser

func (ory *Ory) DelegateUser(email string, role string) error

func (*Ory) DeleteUser

func (ory *Ory) DeleteUser(id string) error

DeleteUser : adas

func (*Ory) ElevateUser

func (ory *Ory) ElevateUser(email string, role string) error

func (*Ory) IsAuthorized

func (ory *Ory) IsAuthorized(tokenString string, action string, resource string) (bool, error)

IsAuthorized chec

Jump to

Keyboard shortcuts

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