pb

package
v0.0.0-...-bc5b573 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Overview

server.go Creates and instantiates all 3 protobuf servers that rafta uses:

  • Admin
  • Auth
  • Rafta

server_tools.go contains logic bits that are used by multiple endpoints to minimize code duplication (ex: both `Admin/CreateUser` and `Auth/Signup` need the same code to instantiate a new user).

Index

Constants

This section is empty.

Variables

View Source
var ErrOutOfBoundsPort = errors.New("given port is out of bounds (1024-65535)")

Functions

func NewAdminServer

func NewAdminServer(ps *protoServer) *adminServer

func NewAuthServer

func NewAuthServer(ps *protoServer) *authServer

func NewRaftaServer

func NewRaftaServer(ps *protoServer) *raftaServer

func Setup

func Setup(ctx context.Context, authMgr *auth.AuthManager, cfg *util.ConfigStore, db *sql.DB) (*grpc.Server, *database.Queries, error)

Setup creates a new gRPC with both services and starts listening on the given port

Types

This section is empty.

Jump to

Keyboard shortcuts

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