tutils

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmtpyLifecycle

type EmtpyLifecycle struct {
	Hooks []fx.Hook
}

func NewEmtpyLifecycle

func NewEmtpyLifecycle() *EmtpyLifecycle

func (*EmtpyLifecycle) Append

func (e *EmtpyLifecycle) Append(h fx.Hook)

type SlackHttpClientForTokenExpiresTest

type SlackHttpClientForTokenExpiresTest struct {
	OtherError bool

	TokenExpired       bool
	GetOAuthToken      bool
	GetOAuthTokenError bool
	SendMessageOK      bool
	// contains filtered or unexported fields
}

func (*SlackHttpClientForTokenExpiresTest) Do

Do will return different result for test. If token expired set to true, it will return "token_expired" error, and will return normal response next time.

func (*SlackHttpClientForTokenExpiresTest) GetInvokeNums

func (c *SlackHttpClientForTokenExpiresTest) GetInvokeNums() int

Jump to

Keyboard shortcuts

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