Documentation ¶
Index ¶
- type CosClient
- type CosClientImpl
- func (impl *CosClientImpl) AfterInject() error
- func (impl *CosClientImpl) CosBucketURL(ctx context.Context, req *cos_pb.CosBucketURLReq) (*cos_pb.CosBucketURLResp, error)
- func (impl *CosClientImpl) CosGet(ctx context.Context, req *cos_pb.CosGetReq) (*cos_pb.CosGetResp, error)
- func (impl *CosClientImpl) CosPut(ctx context.Context, req *cos_pb.CosPutReq) (*cos_pb.CosPutResp, error)
- type CryptoClient
- type CryptoClientImpl
- func (impl *CryptoClientImpl) AfterInject() error
- func (impl *CryptoClientImpl) CryptoDecrypt(ctx context.Context, req *crypto_pb.CryptoDecryptReq) (*crypto_pb.CryptoDecryptResp, error)
- func (impl *CryptoClientImpl) CryptoEncrypt(ctx context.Context, req *crypto_pb.CryptoEncryptReq) (*crypto_pb.CryptoEncryptResp, error)
- type NodeService
- type NodeServiceImpl
- type PastebinClient
- type PastebinClientImpl
- type TinyURLClient
- type TinyURLClientImpl
- func (impl *TinyURLClientImpl) AfterInject() error
- func (impl *TinyURLClientImpl) TinyURLDecode(ctx context.Context, req *tinyurl_pb.TinyURLDecodeReq) (*tinyurl_pb.TinyURLDecodeResp, error)
- func (impl *TinyURLClientImpl) TinyURLEncode(ctx context.Context, req *tinyurl_pb.TinyURLEncodeReq) (*tinyurl_pb.TinyURLEncodeResp, error)
- type UserClient
- type UserClientImpl
- func (impl *UserClientImpl) AfterInject() error
- func (impl *UserClientImpl) UserAuth(ctx context.Context, req *user_pb.UserAuthReq) (*user_pb.UserAuthResp, error)
- func (impl *UserClientImpl) UserInfo(ctx context.Context, req *user_pb.UserInfoReq) (*user_pb.UserInfoResp, error)
- func (impl *UserClientImpl) UserRefresh(ctx context.Context, req *user_pb.UserRefreshReq) (*user_pb.UserRefreshResp, error)
- func (impl *UserClientImpl) UserRegister(ctx context.Context, req *user_pb.UserRegisterReq) (*user_pb.UserRegisterResp, error)
- func (impl *UserClientImpl) UserTest(ctx context.Context, req *user_pb.UserTestReq) (*user_pb.UserTestResp, error)
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 ¶
func (impl *CryptoClientImpl) CryptoDecrypt(ctx context.Context, req *crypto_pb.CryptoDecryptReq) (*crypto_pb.CryptoDecryptResp, error)
CryptoDecrypt decrypt
func (*CryptoClientImpl) CryptoEncrypt ¶
func (impl *CryptoClientImpl) CryptoEncrypt(ctx context.Context, req *crypto_pb.CryptoEncryptReq) (*crypto_pb.CryptoEncryptResp, error)
CryptoEncrypt encrypt
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 ¶
func (impl *PastebinClientImpl) PastebinSubmit(ctx context.Context, req *pastebin_pb.PastebinSubmitReq) (*pastebin_pb.PastebinSubmitResp, error)
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 ¶
func (impl *TinyURLClientImpl) TinyURLDecode(ctx context.Context, req *tinyurl_pb.TinyURLDecodeReq) (*tinyurl_pb.TinyURLDecodeResp, error)
TinyURLDecode decode
func (*TinyURLClientImpl) TinyURLEncode ¶
func (impl *TinyURLClientImpl) TinyURLEncode(ctx context.Context, req *tinyurl_pb.TinyURLEncodeReq) (*tinyurl_pb.TinyURLEncodeResp, error)
TinyURLEncode encode
type UserClient ¶
type UserClient interface { UserTest(ctx context.Context, req *user_pb.UserTestReq) (*user_pb.UserTestResp, error) UserRegister(ctx context.Context, req *user_pb.UserRegisterReq) (*user_pb.UserRegisterResp, error) UserAuth(ctx context.Context, req *user_pb.UserAuthReq) (*user_pb.UserAuthResp, error) UserRefresh(ctx context.Context, req *user_pb.UserRefreshReq) (*user_pb.UserRefreshResp, error) UserInfo(ctx context.Context, req *user_pb.UserInfoReq) (*user_pb.UserInfoResp, error) }
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 ¶
func (impl *UserClientImpl) UserAuth(ctx context.Context, req *user_pb.UserAuthReq) (*user_pb.UserAuthResp, error)
UserAuth auth
func (*UserClientImpl) UserInfo ¶
func (impl *UserClientImpl) UserInfo(ctx context.Context, req *user_pb.UserInfoReq) (*user_pb.UserInfoResp, error)
UserInfo info
func (*UserClientImpl) UserRefresh ¶
func (impl *UserClientImpl) UserRefresh(ctx context.Context, req *user_pb.UserRefreshReq) (*user_pb.UserRefreshResp, error)
UserRefresh refresh
func (*UserClientImpl) UserRegister ¶
func (impl *UserClientImpl) UserRegister(ctx context.Context, req *user_pb.UserRegisterReq) (*user_pb.UserRegisterResp, error)
UserRegister register
func (*UserClientImpl) UserTest ¶
func (impl *UserClientImpl) UserTest(ctx context.Context, req *user_pb.UserTestReq) (*user_pb.UserTestResp, error)
UserTest test