# README
Introduction
Usages
Customized use case.
func main() {
s, err := hrpc.NewServer(
option.WithServerName("orderservice"),
option.WithDatabases(redis.New(
redis.WithCustomized(), // Very important, if you forget to provide this option, the HRPC will read configuration got from the configuration center to load.
redis.WithAddress("xxxx"),
redis.WithDB(0),
redis.WithAuth("user", "pass"),
redis.WithPort(6378), // Default 6379
)),
option.WithEnvironment(option.Development),
option.WithHealthCheck(),
)
// xxx
}
# Functions
Client returns the handler to operate redis if success.
No description provided by the author
Valid returns a bool valud to determine whether the connection is ready to use.
No description provided by the author
No description provided by the author
WithCustomized will use your own configurations.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrNil when key does not exist.
# Type aliases
No description provided by the author