grpcserver

package
v0.0.0-...-514e0f0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(db *sqlx.DB, privateKey *rsa.PrivateKey, port int64) error

Types

type GRPCServer

type GRPCServer struct {
	proto.UnsafeUserServiceServer
	// contains filtered or unexported fields
}

func (GRPCServer) AddAuditEvent

func (g GRPCServer) AddAuditEvent(ctx context.Context, req *proto.NewAuditEventRequest) (*proto.Nothing, error)

func (GRPCServer) BanUser

func (GRPCServer) GetAuditEvents

func (GRPCServer) GetUserForForeignUID

func (GRPCServer) GetUserFromID

func (GRPCServer) Login

func (GRPCServer) Register

func (GRPCServer) ResetPassword

func (g GRPCServer) ResetPassword(ctx context.Context, req *proto.ResetPasswordRequest) (*proto.Nothing, error)

func (GRPCServer) SetUserRank

func (g GRPCServer) SetUserRank(ctx context.Context, req *proto.SetRankRequest) (*proto.Nothing, error)

func (GRPCServer) ValidateJWT

Jump to

Keyboard shortcuts

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