Documentation ¶
Index ¶
- type GetGroupKeySessionServer
- func (session *GetGroupKeySessionServer) Abort()
- func (session *GetGroupKeySessionServer) Error() error
- func (session *GetGroupKeySessionServer) ID() uint32
- func (session *GetGroupKeySessionServer) IsAlive() bool
- func (session *GetGroupKeySessionServer) NextState(contact *comcommon.Contact, data []byte)
- func (session *GetGroupKeySessionServer) Run()
- func (session *GetGroupKeySessionServer) State() uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetGroupKeySessionServer ¶
type GetGroupKeySessionServer struct {
// contains filtered or unexported fields
}
GetGroupKeySessionServer is a server session that will send the requested group data to the sender if he can authenticate itself and has access to the given data
func NewGetGroupDataSessionServer ¶
func NewGetGroupDataSessionServer( msg *comcommon.Message, contact *comcommon.Contact, sender ethcommon.Address, signer comcommon.Signer, callback common.CtxCallback, onSessionClosed common.SessionClosedCallback, ) (*GetGroupKeySessionServer, error)
NewGetGroupDataSessionServer creates a new session server that will send the requested group data to the sender
func (*GetGroupKeySessionServer) Abort ¶
func (session *GetGroupKeySessionServer) Abort()
Abort aborts the session
func (*GetGroupKeySessionServer) Error ¶
func (session *GetGroupKeySessionServer) Error() error
Error returns any errors that may have occurred during the session
func (*GetGroupKeySessionServer) ID ¶
func (session *GetGroupKeySessionServer) ID() uint32
ID returns the session id
func (*GetGroupKeySessionServer) IsAlive ¶
func (session *GetGroupKeySessionServer) IsAlive() bool
IsAlive returns if the session is active or not
func (*GetGroupKeySessionServer) NextState ¶
func (session *GetGroupKeySessionServer) NextState(contact *comcommon.Contact, data []byte)
NextState moves the FSM's state. For more information see ISession
func (*GetGroupKeySessionServer) Run ¶
func (session *GetGroupKeySessionServer) Run()
Run starts the session
func (*GetGroupKeySessionServer) State ¶
func (session *GetGroupKeySessionServer) State() uint8
State returns the session's current state
Click to show internal directories.
Click to hide internal directories.