| 17 | var ErrSharedStorageNotConfigured = errors.New("fiber: shared storage is not configured") |
| 18 | |
| 19 | type 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 | |
| 32 | func newSharedState(cfg *Config) *SharedState { |
| 33 | if cfg == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected