Skip to content

Add manager.Opts() method to expose option #30

@rskumar

Description

@rskumar

Since Opts is not exposed, custom middleware extension is not possible, in case I want to write my own middleware.
Referring

scs/manager.go

Line 114 in 876a0fd

func (m *Manager) Use(next http.Handler) http.Handler {
, m.opts.Timeout cannot be accessed from outside package.

What if by adding manager.Opts() method, which returns opts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions