school

package
v0.0.0-...-e235655 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchoolServer

type SchoolServer struct {
	Handler db.Handler
}

func (*SchoolServer) CheckHealth

func (c *SchoolServer) CheckHealth(ctx context.Context, req *pb.HealthRequest) (*pb.HealthResponse, error)

TODO can provide the info about connections

func (*SchoolServer) CreateClass

func (s *SchoolServer) CreateClass(ctx context.Context, req *pb.ClassRequest) (*pb.CreateResponse, error)

func (*SchoolServer) CreateSchool

func (s *SchoolServer) CreateSchool(ctx context.Context, req *pb.SchoolRequest) (*pb.CreateResponse, error)

func (*SchoolServer) CreateStudent

func (s *SchoolServer) CreateStudent(ctx context.Context, req *pb.StudentRequest) (*pb.CreateResponse, error)

TODO SHOULD ADD UNIQUE CONSTRAIN ON USER ID AND CLASS ID AND CHECK USER ROLE

func (*SchoolServer) GetClass

func (s *SchoolServer) GetClass(ctx context.Context, req *pb.ID) (*pb.ClassResponse, error)

Jump to

Keyboard shortcuts

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