iris

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeMemberNicknameUpdated = client.EventTypeMemberNicknameUpdated

	SSEEventRoomEvent   = client.SSEEventRoomEvent
	SSEEventStreamState = client.SSEEventStreamState

	StreamCursorStatusCurrent = client.StreamCursorStatusCurrent
	StreamCursorStatusStale   = client.StreamCursorStatusStale
	StreamCursorStatusFuture  = client.StreamCursorStatusFuture

	StreamRecoveryQueryRecentMessages = client.StreamRecoveryQueryRecentMessages
)
View Source
const (
	PathReply               = client.PathReply
	PathReplyStatus         = client.PathReplyStatus
	PathReady               = client.PathReady
	PathHealth              = client.PathHealth
	PathConfig              = client.PathConfig
	PathDiagnosticsBridge   = client.PathDiagnosticsBridge
	PathKaringSend          = client.PathKaringSend
	PathKaringContentList   = client.PathKaringContentList
	PathKaringHololive      = client.PathKaringHololive
	PathRooms               = client.PathRooms
	PathEventsStream        = client.PathEventsStream
	PathQueryRoomSummary    = client.PathQueryRoomSummary
	PathQueryMemberStats    = client.PathQueryMemberStats
	PathQueryRecentThreads  = client.PathQueryRecentThreads
	PathQueryRecentMessages = client.PathQueryRecentMessages

	SecretRoleInbound    = client.SecretRoleInbound
	SecretRoleBotControl = client.SecretRoleBotControl
	SecretRoleCertReload = client.SecretRoleCertReload

	PathDiagnosticsChatroom     = client.PathDiagnosticsChatroom
	PathDiagnosticsNativeCore   = client.PathDiagnosticsNativeCore
	PathDiagnosticsRuntime      = client.PathDiagnosticsRuntime
	PathDiagnosticsTextPing     = client.PathDiagnosticsTextPing
	PathDiagnosticsChatroomOpen = client.PathDiagnosticsChatroomOpen
	PathAdminCertReload         = client.PathAdminCertReload

	HeaderIrisTimestamp  = client.HeaderIrisTimestamp
	HeaderIrisNonce      = client.HeaderIrisNonce
	HeaderIrisSignature  = client.HeaderIrisSignature
	HeaderIrisBodySHA256 = client.HeaderIrisBodySHA256

	PingStrategyAuto   = client.PingStrategyAuto
	PingStrategyReady  = client.PingStrategyReady
	PingStrategyHealth = client.PingStrategyHealth

	KaringStreamStatusLive     = client.KaringStreamStatusLive
	KaringStreamStatusUpcoming = client.KaringStreamStatusUpcoming
)
View Source
const (
	EnvBaseURL      = "IRIS_BASE_URL"
	EnvBotToken     = "IRIS_BOT_TOKEN"
	EnvWebhookToken = "IRIS_WEBHOOK_TOKEN"
)

Variables

View Source
var (
	ResolveClientSDKConfig = client.ResolveSDKConfig

	WithTransport                    = client.WithTransport
	WithTimeout                      = client.WithTimeout
	WithDialTimeout                  = client.WithDialTimeout
	WithTLSHandshakeTimeout          = client.WithTLSHandshakeTimeout
	WithResponseHeaderTimeout        = client.WithResponseHeaderTimeout
	WithIdleConnTimeout              = client.WithIdleConnTimeout
	WithMaxIdleConns                 = client.WithMaxIdleConns
	WithMaxIdleConnsPerHost          = client.WithMaxIdleConnsPerHost
	WithMaxConnsPerHost              = client.WithMaxConnsPerHost
	WithReadIdleTimeout              = client.WithReadIdleTimeout
	WithPingTimeout                  = client.WithPingTimeout
	WithPingProbeTimeout             = client.WithPingProbeTimeout
	WithPingStrategy                 = client.WithPingStrategy
	WithWriteByteTimeout             = client.WithWriteByteTimeout
	WithLogger                       = client.WithLogger
	WithHTTPClient                   = client.WithHTTPClient
	WithRoundTripper                 = client.WithRoundTripper
	WithH3ServerName                 = client.WithH3ServerName
	WithH3CACertFile                 = client.WithH3CACertFile
	WithH3CACertReloadInterval       = client.WithH3CACertReloadInterval
	WithH3InsecureSkipVerifyForTests = client.WithH3InsecureSkipVerifyForTests
	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
	WithAttachmentJSON               = client.WithAttachmentJSON
	WithInboundSecret                = client.WithInboundSecret
	WithBotControlToken              = client.WithBotControlToken
	WithCertReloadToken              = client.WithCertReloadToken
	WithH3AllowSystemRoots           = client.WithH3AllowSystemRoots
)
View Source
var (
	ErrRetryable   = client.ErrRetryable
	ErrPermanent   = client.ErrPermanent
	ErrAuthFailed  = client.ErrAuthFailed
	ErrRateLimited = client.ErrRateLimited
	ErrTransport   = client.ErrTransport

	ErrCertReloadTokenRequired = client.ErrCertReloadTokenRequired
	ErrInboundSecretRequired   = client.ErrInboundSecretRequired
)

Functions

func IsH3EgressDenied

func IsH3EgressDenied(err error) bool

Types

type BotClient

type BotClient interface {
	Sender
	Ping(ctx context.Context) bool
	GetConfig(ctx context.Context) (*ConfigResponse, error)
}

BotClient는 메시지 전송·liveness·config 조회만 필요한 봇 소비자용 최소 인터페이스입니다.

type BotCommandInfo

type BotCommandInfo = client.BotCommandInfo

type BridgeDiagnosticsCapabilities

type BridgeDiagnosticsCapabilities = client.BridgeDiagnosticsCapabilities

type BridgeDiagnosticsCapability

type BridgeDiagnosticsCapability = client.BridgeDiagnosticsCapability

type BridgeDiscoveryHook

type BridgeDiscoveryHook = client.BridgeDiscoveryHook

type BridgeHealthCheck

type BridgeHealthCheck = client.BridgeHealthCheck

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

func WithH3DialGuardContext(guard func(context.Context, net.IP) error) ClientOption

type ClientSDKConfig

type ClientSDKConfig = client.SDKConfig

type ConfigDiscoveredState

type ConfigDiscoveredState = client.ConfigDiscoveredState

type ConfigPendingRestart

type ConfigPendingRestart = client.ConfigPendingRestart

type ConfigResponse

type ConfigResponse = client.ConfigResponse

type ConfigState

type ConfigState = client.ConfigState

type ConfigUpdateRequest

type ConfigUpdateRequest = client.ConfigUpdateRequest

type ConfigUpdateResponse

type ConfigUpdateResponse = client.ConfigUpdateResponse

type H2CClient

type H2CClient = client.H2CClient

func NewClient

func NewClient(opts ...ClientOption) (*H2CClient, error)

func NewH2CClient

func NewH2CClient(baseURL, botToken string, opts ...ClientOption) *H2CClient

type HTTPError

type HTTPError = client.HTTPError

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 KeyCacheStats

type KeyCacheStats = client.KeyCacheStats

type MemberActivityResponse

type MemberActivityResponse = client.MemberActivityResponse

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 NoticeInfo

type NoticeInfo = client.NoticeInfo

type OpenLinkInfo

type OpenLinkInfo = client.OpenLinkInfo

type PeriodRange

type PeriodRange = client.PeriodRange

type PingError

type PingError = client.PingError

type PingStrategy

type PingStrategy = client.PingStrategy

type QueryMemberStatsRequest

type QueryMemberStatsRequest = client.QueryMemberStatsRequest

type QueryRecentMessagesRequest

type QueryRecentMessagesRequest = client.QueryRecentMessagesRequest

type QueryRecentThreadsRequest

type QueryRecentThreadsRequest = client.QueryRecentThreadsRequest

type QueryRoomSummaryRequest

type QueryRoomSummaryRequest = client.QueryRoomSummaryRequest

type RawSSEEvent

type RawSSEEvent = client.RawSSEEvent

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 ReplyMentionUserID

type ReplyMentionUserID = client.ReplyMentionUserID

type ReplyRequest

type ReplyRequest = client.ReplyRequest

type ReplyStatusSnapshot

type ReplyStatusSnapshot = client.ReplyStatusSnapshot

type RoomEventRecord

type RoomEventRecord = client.RoomEventRecord

type RoomInfoResponse

type RoomInfoResponse = client.RoomInfoResponse

type RoomListResponse

type RoomListResponse = client.RoomListResponse

type RoomStatsOptions

type RoomStatsOptions = client.RoomStatsOptions

type RoomSummary

type RoomSummary = client.RoomSummary

type SSERoomEventBody

type SSERoomEventBody = client.SSERoomEventBody

type SSEStreamState

type SSEStreamState = client.SSEStreamState

type SecretRole

type SecretRole = client.SecretRole

type SendOption

type SendOption = client.SendOption

type Sender

type Sender = client.Sender

type StatsResponse

type StatsResponse = client.StatsResponse

type TextPingWarmResponse

type TextPingWarmResponse = client.TextPingWarmResponse

type ThreadListResponse

type ThreadListResponse = client.ThreadListResponse

type ThreadSummary

type ThreadSummary = client.ThreadSummary

type TransportError

type TransportError = client.TransportError

Jump to

Keyboard shortcuts

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