MCPcopy
hub / github.com/gofiber/fiber / SharedState

Struct SharedState

shared_state.go:19–30  ·  shared_state.go::SharedState

Source from the content-addressed store, hash-verified

17var ErrSharedStorageNotConfigured = errors.New("fiber: shared storage is not configured")
18
19type SharedState struct {
20 storage Storage
21 jsonEncoder utils.JSONMarshal
22 jsonDecoder utils.JSONUnmarshal
23 msgPackEncoder utils.MsgPackMarshal
24 msgPackDecoder utils.MsgPackUnmarshal
25 cborEncoder utils.CBORMarshal
26 cborDecoder utils.CBORUnmarshal
27 xmlEncoder utils.XMLMarshal
28 xmlDecoder utils.XMLUnmarshal
29 prefix string
30}
31
32func newSharedState(cfg *Config) *SharedState {
33 if cfg == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected