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

Method RegisterType

middleware/session/store.go:77–79  ·  view source on GitHub ↗

RegisterType registers a custom type for encoding/decoding into any storage provider. Parameters: - i: The custom type to register. Usage: store.RegisterType(MyCustomType{})

(i any)

Source from the content-addressed store, hash-verified

75//
76// store.RegisterType(MyCustomType{})
77func (*Store) RegisterType(i any) {
78 gob.Register(i)
79}
80
81// Get will get/create a session.
82//

Callers 4

NewStoreFunction · 0.95
Test_Session_TypesFunction · 0.95
Test_Session_KeyTypesFunction · 0.95
newSessionManagerFunction · 0.80

Calls

no outgoing calls

Tested by 2

Test_Session_TypesFunction · 0.76
Test_Session_KeyTypesFunction · 0.76