Documentation ¶
Index ¶
- type GetGroupDataSessionClient
- func (session *GetGroupDataSessionClient) Abort()
- func (session *GetGroupDataSessionClient) Error() error
- func (session *GetGroupDataSessionClient) ID() uint32
- func (session *GetGroupDataSessionClient) IsAlive() bool
- func (session *GetGroupDataSessionClient) NextState(contact *comcommon.Contact, data []byte)
- func (session *GetGroupDataSessionClient) Run()
- func (session *GetGroupDataSessionClient) State() uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetGroupDataSessionClient ¶
type GetGroupDataSessionClient struct {
// contains filtered or unexported fields
}
GetGroupDataSessionClient is a client in a session that is started for getting a specific group data from another group member
func NewGetGroupDataSessionClient ¶
func NewGetGroupDataSessionClient( requestedGroupData comcommon.GroupData, groupAddr ethcommon.Address, groupMsgPayload []byte, contact *comcommon.Contact, sender ethcommon.Address, signer comcommon.Signer, onSessionClosed common.SessionClosedCallback, onSuccess common.OnGetGroupKeySuccessCallback, ) *GetGroupDataSessionClient
NewGetGroupDataSessionClient creates a new session client to retrieve a group's specific data
func (*GetGroupDataSessionClient) Abort ¶
func (session *GetGroupDataSessionClient) Abort()
Abort aborts the session
func (*GetGroupDataSessionClient) Error ¶
func (session *GetGroupDataSessionClient) Error() error
Error returns any errors that may occurred during the session
func (*GetGroupDataSessionClient) ID ¶
func (session *GetGroupDataSessionClient) ID() uint32
ID returns the session id
func (*GetGroupDataSessionClient) IsAlive ¶
func (session *GetGroupDataSessionClient) IsAlive() bool
IsAlive returns whether the session is active or not
func (*GetGroupDataSessionClient) NextState ¶
func (session *GetGroupDataSessionClient) NextState(contact *comcommon.Contact, data []byte)
NextState : Sessions are implemented as Finite State Machines. NextState moves the session's FSM's state
func (*GetGroupDataSessionClient) Run ¶
func (session *GetGroupDataSessionClient) Run()
Run starts the session
func (*GetGroupDataSessionClient) State ¶
func (session *GetGroupDataSessionClient) State() uint8
State returns the state of the session
Click to show internal directories.
Click to hide internal directories.