example

package
v2.3.57 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 14 Imported by: 0

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

View Source
const VersionTg = "v2.3.29"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientExampleRPC

type ClientExampleRPC struct {
	*ClientJsonRPC
}

func (*ClientExampleRPC) ReqTest

func (cli *ClientExampleRPC) ReqTest(ctx context.Context, callback retExampleRPCTest, arg0 int, arg1 string, opts ...interface{}) (request RequestRPC)

func (*ClientExampleRPC) ReqTest2 added in v2.3.28

func (cli *ClientExampleRPC) ReqTest2(ctx context.Context, callback retExampleRPCTest2, arg0 int, arg1 string, opts ...interface{}) (request RequestRPC)

func (*ClientExampleRPC) Test

func (cli *ClientExampleRPC) Test(ctx context.Context, arg0 int, arg1 string, opts ...interface{}) (ret1 int, ret2 string, err error)

func (*ClientExampleRPC) Test2 added in v2.3.28

func (cli *ClientExampleRPC) Test2(ctx context.Context, arg0 int, arg1 string, opts ...interface{}) (ret1 int, ret2 string, err error)

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) ExampleRPC

func (cli *ClientJsonRPC) ExampleRPC() *ClientExampleRPC

type ErrorDecoder

type ErrorDecoder func(errData json.RawMessage) error

type Option

type Option func(cli *ClientJsonRPC)

func Cache added in v2.3.28

func Cache(cache cache) Option

func CircuitBreaker added in v2.3.28

func CircuitBreaker(cfg cb.Settings) Option

func DecodeError

func DecodeError(decoder ErrorDecoder) Option

func FallbackExampleRPCErr added in v2.3.28

func FallbackExampleRPCErr(fallback fallbackExampleRPC) Option

func FallbackTTL added in v2.3.28

func FallbackTTL(ttl time.Duration) Option

func Headers

func Headers(headers ...interface{}) Option

func Insecure added in v2.3.28

func Insecure() Option

func LogOnError added in v2.3.28

func LogOnError() Option

func LogRequest added in v2.3.28

func LogRequest() Option

type RequestRPC added in v2.3.28

type RequestRPC struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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