Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonSession ¶
type JsonSession interface { Info() view.SessionInfo Send(payload any) error SendRaw(ctx context.Context, raw []byte) error SendWithContext(ctx context.Context, payload any) error SendError(error string) error SendErrorWithContext(ctx context.Context, error string) error Receive(state interface{}) error ReceiveWithTimeout(state interface{}, d time.Duration) error ReceiveRaw() ([]byte, error) ReceiveRawWithTimeout(d time.Duration) ([]byte, error) Session() Session }
func JSON ¶
func JSON(context view.Context) JsonSession
func NewFromInitiator ¶
func NewFromSession ¶
func NewFromSession(context view.Context, s Session) JsonSession
Click to show internal directories.
Click to hide internal directories.