servers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatus

func GetStatus(err error) codes.Code

GetStatus - Get error status

Types

type HealthServer

type HealthServer struct {
	health.UnimplementedHealthServer
}

HealthServer - Structure for Health Server

func NewHealthServer

func NewHealthServer() *HealthServer

NewHealthServer - Creates new HealthServer Server

func (*HealthServer) Check

Check - Return health check status response

func (*HealthServer) Watch

Watch - TO:DO

type PermissionServer

type PermissionServer struct {
	v1.UnimplementedPermissionServer
	// contains filtered or unexported fields
}

PermissionServer - Structure for Permission Server

func NewPermissionServer

func NewPermissionServer(p services.IPermissionService, l logger.Interface) *PermissionServer

NewPermissionServer - Creates new Permission Server

func (*PermissionServer) Check

Check - Performs Authorization Check

func (*PermissionServer) Expand

Expand - Get schema actions in a tree structure

func (*PermissionServer) LookupEntity

LookupEntity -

func (*PermissionServer) LookupEntityStream

LookupEntityStream -

func (*PermissionServer) LookupSchema

LookupSchema -

type RelationshipServer

type RelationshipServer struct {
	v1.UnimplementedRelationshipServer
	// contains filtered or unexported fields
}

RelationshipServer - Structure for Relationship Server

func NewRelationshipServer

NewRelationshipServer - Creates new Relationship Server

func (*RelationshipServer) Delete

Delete - Delete relation tuples to writeDB

func (*RelationshipServer) Read

Read - Allows directly querying the stored graph data to display and filter stored relational tuples

func (*RelationshipServer) Write

Write - Write relation tuples to writeDB

type SchemaServer

type SchemaServer struct {
	v1.UnimplementedSchemaServer
	// contains filtered or unexported fields
}

SchemaServer - Structure for Schema Server

func NewSchemaServer

func NewSchemaServer(s services.ISchemaService, l logger.Interface) *SchemaServer

NewSchemaServer - Creates new Schema Server

func (*SchemaServer) Read

Read - Read created Schema

func (*SchemaServer) Write

Write - Configure new Permify Schema to Permify

type ServiceContainer

type ServiceContainer struct {
	RelationshipService services.IRelationshipService
	PermissionService   services.IPermissionService
	SchemaService       services.ISchemaService
}

ServiceContainer -

func (*ServiceContainer) Run

func (s *ServiceContainer) Run(ctx context.Context, cfg *config.Server, authentication *config.Authn, l *logger.Logger) error

Run -

type WelcomeServer

type WelcomeServer struct {
	v1.UnimplementedWelcomeServer
}

WelcomeServer - Structure for Welcome Server

func NewWelcomeServer

func NewWelcomeServer() *WelcomeServer

NewWelcomeServer - Creates new Welcome Server

func (*WelcomeServer) Hello

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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