handler_base

package
v0.0.0-...-bd0de05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleEventReq

type ModuleEventReq struct {
	// contains filtered or unexported fields
}

func NewModuleEventReq

func NewModuleEventReq(
	eventType string,
	msg interface{},
	mustReturn bool,
	result chan contract.IModuleEventResult,
) *ModuleEventReq

func (*ModuleEventReq) GetEventType

func (e *ModuleEventReq) GetEventType() string

func (*ModuleEventReq) GetMsg

func (e *ModuleEventReq) GetMsg() interface{}

func (*ModuleEventReq) GetMustReturn

func (e *ModuleEventReq) GetMustReturn() bool

func (*ModuleEventReq) GetResultChan

func (e *ModuleEventReq) GetResultChan() chan contract.IModuleEventResult

func (*ModuleEventReq) SetEventType

func (e *ModuleEventReq) SetEventType(eventType string)

func (*ModuleEventReq) SetMsg

func (e *ModuleEventReq) SetMsg(msg interface{})

func (*ModuleEventReq) SetMustReturn

func (e *ModuleEventReq) SetMustReturn(bSet bool)

func (*ModuleEventReq) SetResultChan

func (e *ModuleEventReq) SetResultChan(result chan contract.IModuleEventResult)

func (*ModuleEventReq) UnmarshalToDaprCallData

func (e *ModuleEventReq) UnmarshalToDaprCallData(v interface{}) error

func (*ModuleEventReq) UnmarshalToDaprEventData

func (e *ModuleEventReq) UnmarshalToDaprEventData(v interface{}) error

func (*ModuleEventReq) WriteResultData

func (e *ModuleEventReq) WriteResultData(resData interface{})

type ModuleEventResult

type ModuleEventResult struct {
	// contains filtered or unexported fields
}

func NewModuleEventResult

func NewModuleEventResult(result []byte, err error) *ModuleEventResult

func (*ModuleEventResult) GetError

func (r *ModuleEventResult) GetError() error

func (*ModuleEventResult) GetResult

func (r *ModuleEventResult) GetResult() []byte

func (*ModuleEventResult) SetError

func (r *ModuleEventResult) SetError(err error)

func (*ModuleEventResult) SetResult

func (r *ModuleEventResult) SetResult(result []byte)

type ServiceHandlerBase

type ServiceHandlerBase struct {
	// contains filtered or unexported fields
}

func (*ServiceHandlerBase) AddClientEvent

func (*ServiceHandlerBase) AddGameServiceDaprCall

func (p *ServiceHandlerBase) AddGameServiceDaprCall(name string, f contract.ServiceEventFunc)

func (*ServiceHandlerBase) AddGameServiceDaprEvent

func (p *ServiceHandlerBase) AddGameServiceDaprEvent(name string, f contract.ServiceEventFunc)

func (*ServiceHandlerBase) AddWeb3DaprCall

func (p *ServiceHandlerBase) AddWeb3DaprCall(name string, f contract.ServiceEventFunc)

func (*ServiceHandlerBase) AddWeb3DaprEvent

func (p *ServiceHandlerBase) AddWeb3DaprEvent(name string, f contract.ServiceEventFunc)

func (*ServiceHandlerBase) EventCall

func (*ServiceHandlerBase) EventCallNoReturn

func (p *ServiceHandlerBase) EventCallNoReturn(env contract.IModuleEventReq)

func (*ServiceHandlerBase) GetGameServiceDaprCallTypes

func (p *ServiceHandlerBase) GetGameServiceDaprCallTypes() []string

func (*ServiceHandlerBase) GetGameServiceDaprEventTypes

func (p *ServiceHandlerBase) GetGameServiceDaprEventTypes() []string

func (*ServiceHandlerBase) GetWeb3DaprCallTypes

func (p *ServiceHandlerBase) GetWeb3DaprCallTypes() []string

func (*ServiceHandlerBase) GetWeb3DaprEventTypes

func (p *ServiceHandlerBase) GetWeb3DaprEventTypes() []string

func (*ServiceHandlerBase) Init

func (*ServiceHandlerBase) OnEvent

func (*ServiceHandlerBase) RegisterClientEvent

func (p *ServiceHandlerBase) RegisterClientEvent()

func (*ServiceHandlerBase) RegisterGameServiceDaprCall

func (p *ServiceHandlerBase) RegisterGameServiceDaprCall()

func (*ServiceHandlerBase) RegisterGameServiceDaprEvent

func (p *ServiceHandlerBase) RegisterGameServiceDaprEvent()

func (*ServiceHandlerBase) RegisterWeb3DaprCall

func (p *ServiceHandlerBase) RegisterWeb3DaprCall()

func (*ServiceHandlerBase) RegisterWeb3DaprEvent

func (p *ServiceHandlerBase) RegisterWeb3DaprEvent()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL