Documentation
¶
Index ¶
- Constants
- Variables
- func IsH3EgressDenied(err error) bool
- func NewWebhookHandler(handler basewebhook.MessageHandler, opts ...basewebhook.HandlerOption) (*basewebhook.Handler, error)
- type BotClient
- type BridgeHealthResult
- type CertReloadResponse
- type Client
- type ClientOption
- type ClientSDKConfig
- type ConfigResponse
- type ConfigUpdateRequest
- type ConfigUpdateResponse
- type H2CClient
- type H3DialGuardOption
- type HTTPError
- type KaringClient
- type KaringContentItem
- type KaringContentListRequest
- type KaringDryRunResponse
- type KaringHololiveRequest
- type KaringSendRequest
- type KaringStreamStatus
- type KaringTemplateArgs
- type MemberInfo
- type MemberListResponse
- type MemberNicknameUpdatedEvent
- type MemberStats
- type NativeCoreDiagnostics
- type NicknameHistoryEntry
- type NicknameHistorySearchMatch
- type NicknameHistorySearchResponse
- type NoopTransportMetrics
- type QueryMemberStatsRequest
- type QueryRecentMessagesRequest
- type RebindingClient
- type RebindingClientConfig
- type RecentMessage
- type RecentMessagesResponse
- type ReplyAcceptedResponse
- type ReplyMention
- type ReplyRequest
- type ReplyStatusSnapshot
- type RoomEventRecord
- type RoomListResponse
- type RoomSummary
- type SendOption
- type Sender
- type StatsResponse
- type TextPingWarmResponse
- type TransportError
- type TransportMetrics
Constants ¶
View Source
const ( PathReply = client.PathReply PathReplyStatus = client.PathReplyStatus PathReady = client.PathReady PathHealth = client.PathHealth PathKaringSend = client.PathKaringSend PathKaringContentList = client.PathKaringContentList PathKaringHololive = client.PathKaringHololive HeaderIrisTimestamp = client.HeaderIrisTimestamp HeaderIrisNonce = client.HeaderIrisNonce HeaderIrisSignature = client.HeaderIrisSignature HeaderIrisBodySHA256 = client.HeaderIrisBodySHA256 KaringStreamStatusLive = client.KaringStreamStatusLive KaringStreamStatusUpcoming = client.KaringStreamStatusUpcoming )
View Source
const ( EnvBaseURL = "IRIS_BASE_URL" EnvBotToken = "IRIS_BOT_TOKEN" EnvWebhookToken = "IRIS_WEBHOOK_TOKEN" )
View Source
const (
EventTypeMemberNicknameUpdated = client.EventTypeMemberNicknameUpdated
)
Variables ¶
View Source
var ( ResolveClientSDKConfig = client.ResolveSDKConfig WithTransport = client.WithTransport WithTimeout = client.WithTimeout WithDialTimeout = client.WithDialTimeout WithResponseHeaderTimeout = client.WithResponseHeaderTimeout WithIdleConnTimeout = client.WithIdleConnTimeout WithMaxIdleConns = client.WithMaxIdleConns WithMaxIdleConnsPerHost = client.WithMaxIdleConnsPerHost WithLogger = client.WithLogger WithHTTPClient = client.WithHTTPClient WithTransportMetrics = client.WithTransportMetrics WithH3ServerName = client.WithH3ServerName WithH3CACertFile = client.WithH3CACertFile WithReplyRetry = client.WithReplyRetry WithHMACSecret = client.WithHMACSecret WithBaseURL = client.WithBaseURL WithBotToken = client.WithBotToken WithClientRequestID = client.WithClientRequestID WithThreadID = client.WithThreadID WithThreadScope = client.WithThreadScope WithImageContentType = client.WithImageContentType WithMention = client.WithMention WithMentions = client.WithMentions WithInboundSecret = client.WithInboundSecret WithBotControlToken = client.WithBotControlToken WithH3AllowSystemRoots = client.WithH3AllowSystemRoots NewH3DialGuardForBaseURL = client.NewH3DialGuardForBaseURL WithH3DialGuardForBaseURL = client.WithH3DialGuardForBaseURL WithH3DialGuardTTL = client.WithH3DialGuardTTL WithH3DialGuardResolveTimeout = client.WithH3DialGuardResolveTimeout WithH3DialGuardLenientInit = client.WithH3DialGuardLenientInit WithH3DialGuardLogger = client.WithH3DialGuardLogger )
View Source
var ( ErrRetryable = client.ErrRetryable ErrPermanent = client.ErrPermanent ErrAuthFailed = client.ErrAuthFailed ErrRateLimited = client.ErrRateLimited ErrTransport = client.ErrTransport ErrInboundSecretRequired = client.ErrInboundSecretRequired )
Functions ¶
func IsH3EgressDenied ¶
func NewWebhookHandler ¶
func NewWebhookHandler(handler basewebhook.MessageHandler, opts ...basewebhook.HandlerOption) (*basewebhook.Handler, error)
Types ¶
type BotClient ¶
type BotClient interface {
Sender
Ping(ctx context.Context) bool
GetConfig(ctx context.Context) (*ConfigResponse, error)
}
BotClient는 메시지 전송·liveness·config 조회만 필요한 봇 소비자용 최소 인터페이스입니다.
type BridgeHealthResult ¶
type BridgeHealthResult = client.BridgeHealthResult
type CertReloadResponse ¶
type CertReloadResponse = client.CertReloadResponse
type Client ¶
type Client interface {
Sender
Ping(ctx context.Context) bool
GetConfig(ctx context.Context) (*ConfigResponse, error)
UpdateConfig(ctx context.Context, name string, req ConfigUpdateRequest) (*ConfigUpdateResponse, error)
GetBridgeHealth(ctx context.Context) (*BridgeHealthResult, error)
GetNativeCoreDiagnostics(ctx context.Context) (*NativeCoreDiagnostics, error)
GetRuntimeDiagnostics(ctx context.Context) (json.RawMessage, error)
GetChatroomFields(ctx context.Context, chatID int64) (json.RawMessage, error)
OpenChatroom(ctx context.Context, chatID int64) (json.RawMessage, error)
GetTextPingDiagnostics(ctx context.Context, chatID int64) (json.RawMessage, error)
WarmTextPing(ctx context.Context, chatID int64) (*TextPingWarmResponse, error)
}
Client는 봇 코드가 공통으로 의존할 Iris 상위 인터페이스입니다.
type ClientOption ¶
type ClientOption = client.ClientOption
func WithH3DialGuard ¶
func WithH3DialGuard(guard func(net.IP) error) ClientOption
func WithH3DialGuardContext ¶ added in v0.28.0
type ClientSDKConfig ¶
type ConfigResponse ¶
type ConfigResponse = client.ConfigResponse
type ConfigUpdateRequest ¶
type ConfigUpdateRequest = client.ConfigUpdateRequest
type ConfigUpdateResponse ¶
type ConfigUpdateResponse = client.ConfigUpdateResponse
type H2CClient ¶
func NewClient ¶
func NewClient(opts ...ClientOption) (*H2CClient, error)
func NewH2CClient ¶
func NewH2CClient(baseURL, botToken string, opts ...ClientOption) *H2CClient
type H3DialGuardOption ¶ added in v0.33.0
type H3DialGuardOption = client.H3DialGuardOption
type KaringClient ¶
type KaringClient = client.KaringClient
type KaringContentItem ¶
type KaringContentItem = client.KaringContentItem
type KaringContentListRequest ¶
type KaringContentListRequest = client.KaringContentListRequest
type KaringDryRunResponse ¶
type KaringDryRunResponse = client.KaringDryRunResponse
type KaringHololiveRequest ¶
type KaringHololiveRequest = client.KaringHololiveRequest
type KaringSendRequest ¶
type KaringSendRequest = client.KaringSendRequest
type KaringStreamStatus ¶
type KaringStreamStatus = client.KaringStreamStatus
type KaringTemplateArgs ¶
type KaringTemplateArgs = client.KaringTemplateArgs
type MemberInfo ¶
type MemberInfo = client.MemberInfo
type MemberListResponse ¶
type MemberListResponse = client.MemberListResponse
type MemberNicknameUpdatedEvent ¶
type MemberNicknameUpdatedEvent = client.MemberNicknameUpdatedEvent
type MemberStats ¶
type MemberStats = client.MemberStats
type NativeCoreDiagnostics ¶
type NativeCoreDiagnostics = client.NativeCoreDiagnostics
type NicknameHistoryEntry ¶
type NicknameHistoryEntry = client.NicknameHistoryEntry
type NicknameHistorySearchMatch ¶
type NicknameHistorySearchMatch = client.NicknameHistorySearchMatch
type NicknameHistorySearchResponse ¶
type NicknameHistorySearchResponse = client.NicknameHistorySearchResponse
type NoopTransportMetrics ¶ added in v0.33.0
type NoopTransportMetrics = client.NoopTransportMetrics
type QueryMemberStatsRequest ¶
type QueryMemberStatsRequest = client.QueryMemberStatsRequest
type QueryRecentMessagesRequest ¶
type QueryRecentMessagesRequest = client.QueryRecentMessagesRequest
type RebindingClient ¶
type RebindingClient = rebind.RebindingClient
func NewRebindingClient ¶
func NewRebindingClient(cfg RebindingClientConfig) *RebindingClient
type RebindingClientConfig ¶
type RebindingClientConfig = rebind.RebindingClientConfig
type RecentMessage ¶
type RecentMessage = client.RecentMessage
type RecentMessagesResponse ¶
type RecentMessagesResponse = client.RecentMessagesResponse
type ReplyAcceptedResponse ¶
type ReplyAcceptedResponse = client.ReplyAcceptedResponse
type ReplyMention ¶
type ReplyMention = client.ReplyMention
type ReplyRequest ¶
type ReplyRequest = client.ReplyRequest
type ReplyStatusSnapshot ¶
type ReplyStatusSnapshot = client.ReplyStatusSnapshot
type RoomEventRecord ¶
type RoomEventRecord = client.RoomEventRecord
type RoomListResponse ¶
type RoomListResponse = client.RoomListResponse
type RoomSummary ¶
type RoomSummary = client.RoomSummary
type SendOption ¶
type SendOption = client.SendOption
type StatsResponse ¶
type StatsResponse = client.StatsResponse
type TextPingWarmResponse ¶
type TextPingWarmResponse = client.TextPingWarmResponse
type TransportError ¶
type TransportError = client.TransportError
type TransportMetrics ¶ added in v0.33.0
type TransportMetrics = client.TransportMetrics
Click to show internal directories.
Click to hide internal directories.