clients

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlClient

type MysqlClient struct {
	Addr string
	// contains filtered or unexported fields
}

type MysqlOptions

type MysqlOptions struct {
	Addr string `flag:"addr" default:"127.0.0.1:3306" usage:"mysql server address"`
}

func (*MysqlOptions) Build

func (mo *MysqlOptions) Build(ctx context.Context) (*MysqlClient, error)

type RedisClient

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

func (*RedisClient) Get

func (rc *RedisClient) Get(key string) (string, error)

type RedisOptions

type RedisOptions struct {
	Addr string `flag:"addr" default:"127.0.0.1" usage:"redis server address"`
	Port int    `flag:"port" default:"6379" usage:"redis server port"`
}

func (*RedisOptions) Build

func (ro *RedisOptions) Build(ctx context.Context) (*RedisClient, error)

Jump to

Keyboard shortcuts

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