Versions in this module Expand all Collapse all v0 v0.117.0 Jan 3, 2025 Changes in this version + func WithServerURL(ctx context.Context, u *url.URL) context.Context + type AcquireTelegramAccountOK struct + AccountID TelegramAccountID + Token uuid.UUID + func (s *AcquireTelegramAccountOK) Decode(d *jx.Decoder) error + func (s *AcquireTelegramAccountOK) Encode(e *jx.Encoder) + func (s *AcquireTelegramAccountOK) GetAccountID() TelegramAccountID + func (s *AcquireTelegramAccountOK) GetToken() uuid.UUID + func (s *AcquireTelegramAccountOK) MarshalJSON() ([]byte, error) + func (s *AcquireTelegramAccountOK) SetAccountID(val TelegramAccountID) + func (s *AcquireTelegramAccountOK) SetToken(val uuid.UUID) + func (s *AcquireTelegramAccountOK) UnmarshalJSON(data []byte) error + func (s *AcquireTelegramAccountOK) Validate() error + type AcquireTelegramAccountReq struct + Job string + RepoName string + RepoOwner string + RunAttempt int + RunID int64 + func (s *AcquireTelegramAccountReq) Decode(d *jx.Decoder) error + func (s *AcquireTelegramAccountReq) Encode(e *jx.Encoder) + func (s *AcquireTelegramAccountReq) GetJob() string + func (s *AcquireTelegramAccountReq) GetRepoName() string + func (s *AcquireTelegramAccountReq) GetRepoOwner() string + func (s *AcquireTelegramAccountReq) GetRunAttempt() int + func (s *AcquireTelegramAccountReq) GetRunID() int64 + func (s *AcquireTelegramAccountReq) MarshalJSON() ([]byte, error) + func (s *AcquireTelegramAccountReq) SetJob(val string) + func (s *AcquireTelegramAccountReq) SetRepoName(val string) + func (s *AcquireTelegramAccountReq) SetRepoOwner(val string) + func (s *AcquireTelegramAccountReq) SetRunAttempt(val int) + func (s *AcquireTelegramAccountReq) SetRunID(val int64) + func (s *AcquireTelegramAccountReq) UnmarshalJSON(data []byte) error + type Client struct + func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error) + func (c *Client) AcquireTelegramAccount(ctx context.Context, request *AcquireTelegramAccountReq) (*AcquireTelegramAccountOK, error) + func (c *Client) GetHealth(ctx context.Context) (*Health, error) + func (c *Client) HeartbeatTelegramAccount(ctx context.Context, params HeartbeatTelegramAccountParams) error + func (c *Client) ReceiveTelegramCode(ctx context.Context, params ReceiveTelegramCodeParams) (*ReceiveTelegramCodeOK, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type Error struct + ErrorMessage string + SpanID OptSpanID + TraceID OptTraceID + func (s *Error) Decode(d *jx.Decoder) error + func (s *Error) Encode(e *jx.Encoder) + func (s *Error) GetErrorMessage() string + func (s *Error) GetSpanID() OptSpanID + func (s *Error) GetTraceID() OptTraceID + func (s *Error) MarshalJSON() ([]byte, error) + func (s *Error) SetErrorMessage(val string) + func (s *Error) SetSpanID(val OptSpanID) + func (s *Error) SetTraceID(val OptTraceID) + func (s *Error) UnmarshalJSON(data []byte) error + func (s *Error) Validate() error + type ErrorStatusCode struct + Response Error + StatusCode int + func (s *ErrorStatusCode) Error() string + func (s *ErrorStatusCode) GetResponse() Error + func (s *ErrorStatusCode) GetStatusCode() int + func (s *ErrorStatusCode) SetResponse(val Error) + func (s *ErrorStatusCode) SetStatusCode(val int) + func (s *ErrorStatusCode) Validate() error + type Health struct + BuildDate time.Time + Commit string + Status string + Version string + func (s *Health) Decode(d *jx.Decoder) error + func (s *Health) Encode(e *jx.Encoder) + func (s *Health) GetBuildDate() time.Time + func (s *Health) GetCommit() string + func (s *Health) GetStatus() string + func (s *Health) GetVersion() string + func (s *Health) MarshalJSON() ([]byte, error) + func (s *Health) SetBuildDate(val time.Time) + func (s *Health) SetCommit(val string) + func (s *Health) SetStatus(val string) + func (s *Health) SetVersion(val string) + func (s *Health) UnmarshalJSON(data []byte) error + type HeartbeatTelegramAccountOK struct + type HeartbeatTelegramAccountParams struct + Forget OptBool + Token uuid.UUID + type Invoker interface + AcquireTelegramAccount func(ctx context.Context, request *AcquireTelegramAccountReq) (*AcquireTelegramAccountOK, error) + GetHealth func(ctx context.Context) (*Health, error) + HeartbeatTelegramAccount func(ctx context.Context, params HeartbeatTelegramAccountParams) error + ReceiveTelegramCode func(ctx context.Context, params ReceiveTelegramCodeParams) (*ReceiveTelegramCodeOK, error) + type OperationName = string + const AcquireTelegramAccountOperation + const GetHealthOperation + const HeartbeatTelegramAccountOperation + const ReceiveTelegramCodeOperation + type OptBool struct + Set bool + Value bool + func NewOptBool(v bool) OptBool + func (o *OptBool) Reset() + func (o *OptBool) SetTo(v bool) + func (o OptBool) Get() (v bool, ok bool) + func (o OptBool) IsSet() bool + func (o OptBool) Or(d bool) bool + type OptSpanID struct + Set bool + Value SpanID + func NewOptSpanID(v SpanID) OptSpanID + func (o *OptSpanID) Decode(d *jx.Decoder) error + func (o *OptSpanID) Reset() + func (o *OptSpanID) SetTo(v SpanID) + func (o OptSpanID) Encode(e *jx.Encoder) + func (o OptSpanID) Get() (v SpanID, ok bool) + func (o OptSpanID) IsSet() bool + func (o OptSpanID) Or(d SpanID) SpanID + func (s *OptSpanID) UnmarshalJSON(data []byte) error + func (s OptSpanID) MarshalJSON() ([]byte, error) + type OptString struct + Set bool + Value string + func NewOptString(v string) OptString + func (o *OptString) Decode(d *jx.Decoder) error + func (o *OptString) Reset() + func (o *OptString) SetTo(v string) + func (o OptString) Encode(e *jx.Encoder) + func (o OptString) Get() (v string, ok bool) + func (o OptString) IsSet() bool + func (o OptString) Or(d string) string + func (s *OptString) UnmarshalJSON(data []byte) error + func (s OptString) MarshalJSON() ([]byte, error) + type OptTraceID struct + Set bool + Value TraceID + func NewOptTraceID(v TraceID) OptTraceID + func (o *OptTraceID) Decode(d *jx.Decoder) error + func (o *OptTraceID) Reset() + func (o *OptTraceID) SetTo(v TraceID) + func (o OptTraceID) Encode(e *jx.Encoder) + func (o OptTraceID) Get() (v TraceID, ok bool) + func (o OptTraceID) IsSet() bool + func (o OptTraceID) Or(d TraceID) TraceID + func (s *OptTraceID) UnmarshalJSON(data []byte) error + func (s OptTraceID) MarshalJSON() ([]byte, error) + type Option interface + func WithMeterProvider(provider metric.MeterProvider) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type ReceiveTelegramCodeOK struct + Code OptString + func (s *ReceiveTelegramCodeOK) Decode(d *jx.Decoder) error + func (s *ReceiveTelegramCodeOK) Encode(e *jx.Encoder) + func (s *ReceiveTelegramCodeOK) GetCode() OptString + func (s *ReceiveTelegramCodeOK) MarshalJSON() ([]byte, error) + func (s *ReceiveTelegramCodeOK) SetCode(val OptString) + func (s *ReceiveTelegramCodeOK) UnmarshalJSON(data []byte) error + func (s *ReceiveTelegramCodeOK) Validate() error + type ReceiveTelegramCodeParams struct + Token uuid.UUID + type SecuritySource interface + TokenAuth func(ctx context.Context, operationName OperationName) (TokenAuth, error) + type SpanID string + func (s *SpanID) Decode(d *jx.Decoder) error + func (s *SpanID) UnmarshalJSON(data []byte) error + func (s SpanID) Encode(e *jx.Encoder) + func (s SpanID) MarshalJSON() ([]byte, error) + func (s SpanID) Validate() error + type TelegramAccountID string + func (s *TelegramAccountID) Decode(d *jx.Decoder) error + func (s *TelegramAccountID) UnmarshalJSON(data []byte) error + func (s TelegramAccountID) Encode(e *jx.Encoder) + func (s TelegramAccountID) MarshalJSON() ([]byte, error) + func (s TelegramAccountID) Validate() error + type TokenAuth struct + APIKey string + func (s *TokenAuth) GetAPIKey() string + func (s *TokenAuth) SetAPIKey(val string) + type TraceID string + func (s *TraceID) Decode(d *jx.Decoder) error + func (s *TraceID) UnmarshalJSON(data []byte) error + func (s TraceID) Encode(e *jx.Encoder) + func (s TraceID) MarshalJSON() ([]byte, error) + func (s TraceID) Validate() error