service

package
v0.0.0-...-bc672fa Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CosClient

type CosClient interface {
	CosBucketURL(ctx context.Context, req *cos_pb.CosBucketURLReq) (*cos_pb.CosBucketURLResp, error)
	CosPut(ctx context.Context, req *cos_pb.CosPutReq) (*cos_pb.CosPutResp, error)
	CosGet(ctx context.Context, req *cos_pb.CosGetReq) (*cos_pb.CosGetResp, error)
}

CosClient tinyurl client

type CosClientImpl

type CosClientImpl struct {
	Conn *grpc.ClientConn `inject-name:"Conn"`
	// contains filtered or unexported fields
}

CosClientImpl Web crypto client implement

func (*CosClientImpl) AfterInject

func (impl *CosClientImpl) AfterInject() error

AfterInject do inject

func (*CosClientImpl) CosBucketURL

func (impl *CosClientImpl) CosBucketURL(ctx context.Context, req *cos_pb.CosBucketURLReq) (*cos_pb.CosBucketURLResp, error)

CosBucketURL return the bucket url

func (*CosClientImpl) CosGet

func (impl *CosClientImpl) CosGet(ctx context.Context, req *cos_pb.CosGetReq) (*cos_pb.CosGetResp, error)

CosPut get

func (*CosClientImpl) CosPut

func (impl *CosClientImpl) CosPut(ctx context.Context, req *cos_pb.CosPutReq) (*cos_pb.CosPutResp, error)

CosPut put

type CryptoClient

type CryptoClient interface {
	CryptoEncrypt(ctx context.Context, req *crypto_pb.CryptoEncryptReq) (*crypto_pb.CryptoEncryptResp, error)
	CryptoDecrypt(ctx context.Context, req *crypto_pb.CryptoDecryptReq) (*crypto_pb.CryptoDecryptResp, error)
}

CryptoClient crypto client

type CryptoClientImpl

type CryptoClientImpl struct {
	Conn *grpc.ClientConn `inject-name:"Conn"`
	// contains filtered or unexported fields
}

CryptoClientImpl Web crypto client implement

func (*CryptoClientImpl) AfterInject

func (impl *CryptoClientImpl) AfterInject() error

AfterInject do inject

func (*CryptoClientImpl) CryptoDecrypt

CryptoDecrypt decrypt

func (*CryptoClientImpl) CryptoEncrypt

CryptoEncrypt encrypt

type NodeService

type NodeService interface{}

NodeService the node service

type NodeServiceImpl

type NodeServiceImpl struct {
	Conn     *grpc.ClientConn `inject-name:"Conn"`
	Cos      CosClient        `inject-name:"Cos"`
	Crypto   CryptoClient     `inject-name:"Crypto"`
	Pastebin PastebinClient   `inject-name:"Pastebin"`
	TinyURL  TinyURLClient    `inject-name:"TinyURL"`
	User     UserClient       `inject-name:"User"`
}

NodeServiceImpl Web crypto service implement

func InitService

func InitService(conn *grpc.ClientConn) *NodeServiceImpl

func (*NodeServiceImpl) AfterInject

func (impl *NodeServiceImpl) AfterInject() error

AfterInject do inject

type PastebinClient

type PastebinClient interface {
	PastebinSubmit(ctx context.Context, req *pastebin_pb.PastebinSubmitReq) (*pastebin_pb.PastebinSubmitResp, error)
}

PastebinClient pastebin client

type PastebinClientImpl

type PastebinClientImpl struct {
	Conn *grpc.ClientConn `inject-name:"Conn"`
	// contains filtered or unexported fields
}

PastebinClientImpl Web crypto service implement

func (*PastebinClientImpl) AfterInject

func (impl *PastebinClientImpl) AfterInject() error

AfterInject do inject

func (*PastebinClientImpl) PastebinSubmit

PastebinSubmit submit

type TinyURLClient

type TinyURLClient interface {
	TinyURLEncode(ctx context.Context, req *tinyurl_pb.TinyURLEncodeReq) (*tinyurl_pb.TinyURLEncodeResp, error)
	TinyURLDecode(ctx context.Context, req *tinyurl_pb.TinyURLDecodeReq) (*tinyurl_pb.TinyURLDecodeResp, error)
}

TinyURLClient tinyurl client

type TinyURLClientImpl

type TinyURLClientImpl struct {
	Conn *grpc.ClientConn `inject-name:"Conn"`
	// contains filtered or unexported fields
}

TinyURLClientImpl client implement

func (*TinyURLClientImpl) AfterInject

func (impl *TinyURLClientImpl) AfterInject() error

AfterInject do inject

func (*TinyURLClientImpl) TinyURLDecode

TinyURLDecode decode

func (*TinyURLClientImpl) TinyURLEncode

TinyURLEncode encode

type UserClient

UserClient user client

type UserClientImpl

type UserClientImpl struct {
	Conn *grpc.ClientConn `inject-name:"Conn"`
	// contains filtered or unexported fields
}

UserClientImpl Web tinyurl service implement

func (*UserClientImpl) AfterInject

func (impl *UserClientImpl) AfterInject() error

AfterInject do inject

func (*UserClientImpl) UserAuth

UserAuth auth

func (*UserClientImpl) UserInfo

UserInfo info

func (*UserClientImpl) UserRefresh

UserRefresh refresh

func (*UserClientImpl) UserRegister

UserRegister register

func (*UserClientImpl) UserTest

UserTest test

Jump to

Keyboard shortcuts

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