Documentation ¶
Index ¶
- func EnvSecuritySource() otelbotapi.SecuritySource
- func NewError(ctx context.Context, err Error) *otelbotapi.ErrorStatusCode
- type Error
- type Handler
- func (h Handler) GetStatus(ctx context.Context) (*otelbotapi.GetStatusOK, error)
- func (h Handler) HandleTokenAuth(ctx context.Context, _ string, t otelbotapi.TokenAuth) (context.Context, error)
- func (h Handler) NewError(ctx context.Context, err error) *otelbotapi.ErrorStatusCode
- func (h Handler) Ping(ctx context.Context) error
- func (h *Handler) SubmitReport(ctx context.Context, req *otelbotapi.SubmitReportReq) error
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvSecuritySource ¶ added in v0.9.0
func EnvSecuritySource() otelbotapi.SecuritySource
func NewError ¶ added in v0.9.0
func NewError(ctx context.Context, err Error) *otelbotapi.ErrorStatusCode
NewError creates new structured error response. All fields are optional.
Types ¶
type Handler ¶ added in v0.9.0
type Handler struct {
// contains filtered or unexported fields
}
Handler handles otelbench api.
func NewHandler ¶ added in v0.9.0
NewHandler initializes and returns a new Handler.
func (Handler) GetStatus ¶ added in v0.9.0
func (h Handler) GetStatus(ctx context.Context) (*otelbotapi.GetStatusOK, error)
func (Handler) HandleTokenAuth ¶ added in v0.9.0
func (Handler) NewError ¶ added in v0.9.0
func (h Handler) NewError(ctx context.Context, err error) *otelbotapi.ErrorStatusCode
func (*Handler) SubmitReport ¶ added in v0.10.0
func (h *Handler) SubmitReport(ctx context.Context, req *otelbotapi.SubmitReportReq) error
Click to show internal directories.
Click to hide internal directories.