service

package
v0.0.0-...-b73d8e2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGPCServer

func BuildGPCServer(db *gorm.DB, log *logger.Logger, enforcer policy.Enforcer) *grpc.Server

func NewGRPCServer

func NewGRPCServer(db *gorm.DB, log *logger.Logger, enforcer policy.Enforcer) *grpc.Server

func ProviderServices

func ProviderServices() []pservice.RegisterServiceHandler

Types

type Backend

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

Backend implements the protobuf interface

func New

func New() *Backend

New initializes a new Backend struct.

func (*Backend) AddUser

AddUser adds a user to the in-memory store.

func (*Backend) ListUsers

ListUsers lists all users in the store.

Jump to

Keyboard shortcuts

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