Documentation ¶
Index ¶
- Constants
- type CoapHandlerWithCounter
- func (ch *CoapHandlerWithCounter) PublishResources(req coapgwTestService.PublishRequest) error
- func (ch *CoapHandlerWithCounter) RefreshToken(req coapgwService.CoapRefreshTokenReq) (coapgwService.CoapRefreshTokenResp, error)
- func (ch *CoapHandlerWithCounter) ResetRefreshToken()
- func (ch *CoapHandlerWithCounter) ResetSignIn()
- func (ch *CoapHandlerWithCounter) ResetSignOff()
- func (ch *CoapHandlerWithCounter) SignIn(req coapgwService.CoapSignInReq) (coapgwService.CoapSignInResp, error)
- func (ch *CoapHandlerWithCounter) SignOff() error
- func (ch *CoapHandlerWithCounter) SignOut(req coapgwService.CoapSignInReq) error
- func (ch *CoapHandlerWithCounter) SignUp(req coapgwService.CoapSignUpRequest) (coapgwService.CoapSignUpResponse, error)
- func (ch *CoapHandlerWithCounter) UnpublishResources(req coapgwTestService.UnpublishRequest) error
- func (ch *CoapHandlerWithCounter) WaitForFirstRefreshToken(timeout time.Duration) bool
- func (ch *CoapHandlerWithCounter) WaitForFirstSignIn(timeout time.Duration) bool
- func (ch *CoapHandlerWithCounter) WaitForFirstSignOff(timeout time.Duration) bool
- func (ch *CoapHandlerWithCounter) WaitForRefreshToken(timeout time.Duration) bool
- func (ch *CoapHandlerWithCounter) WaitForSignIn(timeout time.Duration) bool
- func (ch *CoapHandlerWithCounter) WaitForSignOff(timeout time.Duration) bool
Constants ¶
View Source
const ( SignUpKey = "SignUp" // register SignOffKey = "SignOff" // deregister SignInKey = "SignIn" // log in SignOutKey = "SignOut" // log out PublishKey = "Publish" UnpublishKey = "Unpublish" RefreshTokenKey = "RefreshToken" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoapHandlerWithCounter ¶
type CoapHandlerWithCounter struct { *coapgwTest.DefaultObserverHandler CallCounter struct { Data map[string]int Lock sync.Mutex } // contains filtered or unexported fields }
func NewCoapHandlerWithCounter ¶
func NewCoapHandlerWithCounter(atLifetime int64) *CoapHandlerWithCounter
func (*CoapHandlerWithCounter) PublishResources ¶
func (ch *CoapHandlerWithCounter) PublishResources(req coapgwTestService.PublishRequest) error
func (*CoapHandlerWithCounter) RefreshToken ¶
func (ch *CoapHandlerWithCounter) RefreshToken(req coapgwService.CoapRefreshTokenReq) (coapgwService.CoapRefreshTokenResp, error)
func (*CoapHandlerWithCounter) ResetRefreshToken ¶ added in v2.16.1
func (ch *CoapHandlerWithCounter) ResetRefreshToken()
func (*CoapHandlerWithCounter) ResetSignIn ¶ added in v2.16.1
func (ch *CoapHandlerWithCounter) ResetSignIn()
func (*CoapHandlerWithCounter) ResetSignOff ¶ added in v2.16.1
func (ch *CoapHandlerWithCounter) ResetSignOff()
func (*CoapHandlerWithCounter) SignIn ¶
func (ch *CoapHandlerWithCounter) SignIn(req coapgwService.CoapSignInReq) (coapgwService.CoapSignInResp, error)
func (*CoapHandlerWithCounter) SignOff ¶
func (ch *CoapHandlerWithCounter) SignOff() error
func (*CoapHandlerWithCounter) SignOut ¶
func (ch *CoapHandlerWithCounter) SignOut(req coapgwService.CoapSignInReq) error
func (*CoapHandlerWithCounter) SignUp ¶
func (ch *CoapHandlerWithCounter) SignUp(req coapgwService.CoapSignUpRequest) (coapgwService.CoapSignUpResponse, error)
func (*CoapHandlerWithCounter) UnpublishResources ¶
func (ch *CoapHandlerWithCounter) UnpublishResources(req coapgwTestService.UnpublishRequest) error
func (*CoapHandlerWithCounter) WaitForFirstRefreshToken ¶
func (ch *CoapHandlerWithCounter) WaitForFirstRefreshToken(timeout time.Duration) bool
func (*CoapHandlerWithCounter) WaitForFirstSignIn ¶
func (ch *CoapHandlerWithCounter) WaitForFirstSignIn(timeout time.Duration) bool
func (*CoapHandlerWithCounter) WaitForFirstSignOff ¶
func (ch *CoapHandlerWithCounter) WaitForFirstSignOff(timeout time.Duration) bool
func (*CoapHandlerWithCounter) WaitForRefreshToken ¶ added in v2.16.1
func (ch *CoapHandlerWithCounter) WaitForRefreshToken(timeout time.Duration) bool
func (*CoapHandlerWithCounter) WaitForSignIn ¶ added in v2.16.1
func (ch *CoapHandlerWithCounter) WaitForSignIn(timeout time.Duration) bool
func (*CoapHandlerWithCounter) WaitForSignOff ¶ added in v2.16.1
func (ch *CoapHandlerWithCounter) WaitForSignOff(timeout time.Duration) bool
Click to show internal directories.
Click to hide internal directories.