clients

package
v1.0.1-0...-65d85cd Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConn

func NewConn(api, grpcAddress string) *grpc.ClientConn

grpcAddress 可以为空,表示使用 api 同一地址。 TODO 私有化,并把 token 设置到 default call options

Types

type Client

func NewFromGrpcAddr

func NewFromGrpcAddr(addr string) Client

type ProtoClient

type ProtoClient struct {
	Utils      proto.UtilsClient
	Blog       proto.TaoBlogClient
	Management proto.ManagementClient
	Search     proto.SearchClient
	// contains filtered or unexported fields
}

func NewProtoClient

func NewProtoClient(cc *grpc.ClientConn, token string) *ProtoClient

func (*ProtoClient) Context

func (c *ProtoClient) Context() context.Context

Jump to

Keyboard shortcuts

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