github.com/noisysockets/netstack@v0.6.0/pkg/tcpip/transport/internal/noop/noop_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package noop 4 5 import ( 6 "context" 7 8 "github.com/noisysockets/netstack/pkg/state" 9 ) 10 11 func (ep *endpoint) StateTypeName() string { 12 return "pkg/tcpip/transport/internal/noop.endpoint" 13 } 14 15 func (ep *endpoint) StateFields() []string { 16 return []string{ 17 "DefaultSocketOptionsHandler", 18 "ops", 19 } 20 } 21 22 func (ep *endpoint) beforeSave() {} 23 24 // +checklocksignore 25 func (ep *endpoint) StateSave(stateSinkObject state.Sink) { 26 ep.beforeSave() 27 stateSinkObject.Save(0, &ep.DefaultSocketOptionsHandler) 28 stateSinkObject.Save(1, &ep.ops) 29 } 30 31 func (ep *endpoint) afterLoad(context.Context) {} 32 33 // +checklocksignore 34 func (ep *endpoint) StateLoad(ctx context.Context, stateSourceObject state.Source) { 35 stateSourceObject.Load(0, &ep.DefaultSocketOptionsHandler) 36 stateSourceObject.Load(1, &ep.ops) 37 } 38 39 func init() { 40 state.Register((*endpoint)(nil)) 41 }