endpoint

package
v0.0.0-...-cba6ad5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

initialize all endpoint.

func InitRedis

func InitRedis()

Types

type MetadataEndpoint

type MetadataEndpoint struct {
	Client *xgrpc.Client
	// contains filtered or unexported fields
}

func GetMetadataEndpointIns

func GetMetadataEndpointIns() *MetadataEndpoint

func NewMetadataEndpoint

func NewMetadataEndpoint() *MetadataEndpoint

func (*MetadataEndpoint) AddRule

func (c *MetadataEndpoint) AddRule(ctx context.Context, rule *xutils.Rule) error

func (*MetadataEndpoint) DelRule

func (c *MetadataEndpoint) DelRule(ctx context.Context, rule *xutils.Rule) error

require Ruleql{user_id&id}

type RedisEndpoint

type RedisEndpoint struct{}

func GetRedisEndpoint

func GetRedisEndpoint() (r *RedisEndpoint)

func (*RedisEndpoint) Get

func (r *RedisEndpoint) Get(key string) (string, error)

func (*RedisEndpoint) HDel

func (r *RedisEndpoint) HDel(key string, fields ...string) error

func (*RedisEndpoint) HGet

func (r *RedisEndpoint) HGet(key, field string) (string, error)

func (*RedisEndpoint) HGetAll

func (r *RedisEndpoint) HGetAll(key string) (map[string]string, error)

func (*RedisEndpoint) HSet

func (r *RedisEndpoint) HSet(key, field string, values interface{}) error

func (*RedisEndpoint) Set

func (r *RedisEndpoint) Set(key, value string, expiration time.Duration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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