Documentation ¶
Index ¶
- func GrpcPanicRecoveryInterceptor(logger *log.Logger) grpc.UnaryServerInterceptor
- func GrpcServerLoggerInterceptor(logger *log.Logger) grpc.UnaryServerInterceptor
- func NewFormGRPCServer(app *app.App) *formGrpcServer
- func NewRestHandler(app *app.App) *restHandler
- func NewServer(ctx context.Context, cfg *Config) *server
- type Config
- type FormConnectServer
- func (f *FormConnectServer) Create(ctx context.Context, req *connect.Request[formv1.CreateRequest]) (*connect.Response[formv1.CreateResponse], error)
- func (f *FormConnectServer) GetById(ctx context.Context, req *connect.Request[formv1.GetByIdRequest]) (*connect.Response[formv1.GetByIdResponse], error)
- func (f *FormConnectServer) GetQuestions(ctx context.Context, req *connect.Request[formv1.GetQuestionsRequest]) (*connect.Response[formv1.GetQuestionsResponse], error)
- func (f *FormConnectServer) List(ctx context.Context, req *connect.Request[formv1.ListRequest]) (*connect.Response[formv1.ListResponse], error)
- func (f *FormConnectServer) Update(ctx context.Context, req *connect.Request[formv1.UpdateRequest]) (*connect.Response[formv1.UpdateResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcPanicRecoveryInterceptor ¶
func GrpcPanicRecoveryInterceptor(logger *log.Logger) grpc.UnaryServerInterceptor
func GrpcServerLoggerInterceptor ¶
func GrpcServerLoggerInterceptor(logger *log.Logger) grpc.UnaryServerInterceptor
func NewFormGRPCServer ¶
func NewRestHandler ¶
Types ¶
type FormConnectServer ¶
type FormConnectServer struct {
// contains filtered or unexported fields
}
func NewFormConnectServer ¶
func NewFormConnectServer(grpcServer *formGrpcServer) *FormConnectServer
func (*FormConnectServer) Create ¶
func (f *FormConnectServer) Create(ctx context.Context, req *connect.Request[formv1.CreateRequest]) (*connect.Response[formv1.CreateResponse], error)
func (*FormConnectServer) GetById ¶
func (f *FormConnectServer) GetById(ctx context.Context, req *connect.Request[formv1.GetByIdRequest]) (*connect.Response[formv1.GetByIdResponse], error)
func (*FormConnectServer) GetQuestions ¶
func (f *FormConnectServer) GetQuestions(ctx context.Context, req *connect.Request[formv1.GetQuestionsRequest]) (*connect.Response[formv1.GetQuestionsResponse], error)
func (*FormConnectServer) List ¶
func (f *FormConnectServer) List(ctx context.Context, req *connect.Request[formv1.ListRequest]) (*connect.Response[formv1.ListResponse], error)
func (*FormConnectServer) Update ¶
func (f *FormConnectServer) Update(ctx context.Context, req *connect.Request[formv1.UpdateRequest]) (*connect.Response[formv1.UpdateResponse], error)
Click to show internal directories.
Click to hide internal directories.