Documentation ¶
Overview ¶
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.
Index ¶
- Constants
- type ClientJsonRPC
- type ClientServerSettings
- func (cli *ClientServerSettings) CreateRoom(ctx context.Context, token string, createRoom types.CreateRoomRequest) (err error)
- func (cli *ClientServerSettings) GetConnectionsNum(ctx context.Context, token string) (countConn int, exists bool, err error)
- func (cli *ClientServerSettings) GetDeletedRooms(ctx context.Context, token string, ids []types.GetDeletedRooms) (deletedIds []types.GetDeletedRooms, err error)
- func (cli *ClientServerSettings) GetServerSettings(ctx context.Context, token string) (settings types.Settings, err error)
- func (cli *ClientServerSettings) HealthCheck(ctx context.Context, token string) (exists bool, err error)
- func (cli *ClientServerSettings) ReqCreateRoom(ctx context.Context, callback retServerSettingsCreateRoom, token string, ...) (request RequestRPC)
- func (cli *ClientServerSettings) ReqGetConnectionsNum(ctx context.Context, callback retServerSettingsGetConnectionsNum, token string) (request RequestRPC)
- func (cli *ClientServerSettings) ReqGetDeletedRooms(ctx context.Context, callback retServerSettingsGetDeletedRooms, token string, ...) (request RequestRPC)
- func (cli *ClientServerSettings) ReqGetServerSettings(ctx context.Context, callback retServerSettingsGetServerSettings, token string) (request RequestRPC)
- func (cli *ClientServerSettings) ReqHealthCheck(ctx context.Context, callback retServerSettingsHealthCheck, token string) (request RequestRPC)
- type ErrorDecoder
- type Option
- func Cache(cache cache) Option
- func CircuitBreaker(cfg cb.Settings) Option
- func DecodeError(decoder ErrorDecoder) Option
- func FallbackServerSettingsErr(fallback fallbackServerSettings) Option
- func FallbackTTL(ttl time.Duration) Option
- func Headers(headers ...interface{}) Option
- func Insecure() Option
- func LogOnError() Option
- func LogRequest() Option
- type RequestRPC
Constants ¶
View Source
const VersionTg = "v2.3.49"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientJsonRPC ¶
type ClientJsonRPC struct {
// contains filtered or unexported fields
}
func New ¶
func New(endpoint string, opts ...Option) (cli *ClientJsonRPC)
func (*ClientJsonRPC) Batch ¶
func (cli *ClientJsonRPC) Batch(ctx context.Context, requests ...RequestRPC)
func (*ClientJsonRPC) ServerSettings ¶
func (cli *ClientJsonRPC) ServerSettings() *ClientServerSettings
type ClientServerSettings ¶
type ClientServerSettings struct {
*ClientJsonRPC
}
func (*ClientServerSettings) CreateRoom ¶
func (cli *ClientServerSettings) CreateRoom(ctx context.Context, token string, createRoom types.CreateRoomRequest) (err error)
func (*ClientServerSettings) GetConnectionsNum ¶
func (*ClientServerSettings) GetDeletedRooms ¶ added in v1.0.4
func (cli *ClientServerSettings) GetDeletedRooms(ctx context.Context, token string, ids []types.GetDeletedRooms) (deletedIds []types.GetDeletedRooms, err error)
func (*ClientServerSettings) GetServerSettings ¶
func (*ClientServerSettings) HealthCheck ¶
func (*ClientServerSettings) ReqCreateRoom ¶
func (cli *ClientServerSettings) ReqCreateRoom(ctx context.Context, callback retServerSettingsCreateRoom, token string, createRoom types.CreateRoomRequest) (request RequestRPC)
func (*ClientServerSettings) ReqGetConnectionsNum ¶
func (cli *ClientServerSettings) ReqGetConnectionsNum(ctx context.Context, callback retServerSettingsGetConnectionsNum, token string) (request RequestRPC)
func (*ClientServerSettings) ReqGetDeletedRooms ¶ added in v1.0.4
func (cli *ClientServerSettings) ReqGetDeletedRooms(ctx context.Context, callback retServerSettingsGetDeletedRooms, token string, ids []types.GetDeletedRooms) (request RequestRPC)
func (*ClientServerSettings) ReqGetServerSettings ¶
func (cli *ClientServerSettings) ReqGetServerSettings(ctx context.Context, callback retServerSettingsGetServerSettings, token string) (request RequestRPC)
func (*ClientServerSettings) ReqHealthCheck ¶
func (cli *ClientServerSettings) ReqHealthCheck(ctx context.Context, callback retServerSettingsHealthCheck, token string) (request RequestRPC)
type ErrorDecoder ¶
type ErrorDecoder func(errData json.RawMessage) error
type Option ¶
type Option func(cli *ClientJsonRPC)
func CircuitBreaker ¶
func DecodeError ¶
func DecodeError(decoder ErrorDecoder) Option
func FallbackServerSettingsErr ¶
func FallbackServerSettingsErr(fallback fallbackServerSettings) Option
func FallbackTTL ¶
func LogOnError ¶
func LogOnError() Option
func LogRequest ¶
func LogRequest() Option
type RequestRPC ¶
type RequestRPC struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.