Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GRPC errors ErrInternal = httperror.NewInternalHttpError(errors.New("internal error"), "") // Handler errors ErrWrongContextUsername = httperror.NewInternalHttpError(errors.New("context username from jwt is not string"), "") // Data info errors ErrNullFileSize = httperror.NewExternalHttpError(errors.New("file size is null"), http.StatusBadRequest) )
View Source
var (
RequestTimeout = 5 * time.Second
)
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewDataHandler ¶
func NewDataHandler(grpc_client pb.DataServiceClient) Handler
func (Handler) CreateConnection ¶
func (h Handler) CreateConnection(w http.ResponseWriter, r *http.Request)
Use only with auth_middlewares.WithAuth()
Click to show internal directories.
Click to hide internal directories.