MCPcopy Create free account

hub / github.com/GetcharZp/iot-platform / functions

Functions170 in github.com/GetcharZp/iot-platform

↓ 9 callersMethodString
()
user/rpc/types/user/user.pb.go:85
↓ 6 callersFunctionHttpPost
(url string, data []byte, header ...byte)
helper/helper.go:115
↓ 5 callersFunctionNewDB
()
models/init.go:12
↓ 4 callersFunctionHttpDelete
(url string, data []byte, header ...byte)
helper/helper.go:107
↓ 4 callersFunctionIf
(condition bool, trueValue, falseValue interface{})
helper/helper.go:21
↓ 4 callersFunctionfile_user_proto_rawDescGZIP
()
user/rpc/types/user/user.pb.go:255
↓ 4 callersFunctionhttpRequest
httpRequest .
helper/helper.go:68
↓ 3 callersMethodAuth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/types/user/user_grpc.pb.go:25
↓ 3 callersFunctionHttpGet
(url string, header ...byte)
helper/helper.go:119
↓ 3 callersFunctionMd5
(s string)
helper/helper.go:17
↓ 3 callersMethodOpenAuth
(ctx context.Context, in *OpenAuthRequest, opts ...grpc.CallOption)
user/rpc/types/user/user_grpc.pb.go:26
↓ 3 callersMethodSendMessage
(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption)
device/types/device/device_grpc.pb.go:25
↓ 2 callersFunctionHttpPut
(url string, data []byte, header ...byte)
helper/helper.go:111
↓ 2 callersFunctionNewDevice
(cli zrpc.Client)
device/device/device.go:28
↓ 2 callersFunctionNewUser
(cli zrpc.Client)
user/rpc/user/user.go:31
↓ 2 callersFunctionNewUserClient
(cc grpc.ClientConnInterface)
user/rpc/types/user/user_grpc.pb.go:33
↓ 2 callersMethodSendMessage
(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption)
device/device/device.go:20
↓ 2 callersFunctionfile_device_proto_rawDescGZIP
()
device/types/device/device.pb.go:150
↓ 1 callersFunctionAnalyzeToken
(token string)
helper/helper.go:53
↓ 1 callersMethodAuth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/user/user.go:22
↓ 1 callersMethodAuth
(in *user.UserAuthRequest)
user/rpc/internal/logic/auth_logic.go:28
↓ 1 callersFunctionCreateAuthUser
(in *CreateAuthUserRequest)
api/api.go:10
↓ 1 callersFunctionDeleteAuthUser
(clientId string)
api/api.go:24
↓ 1 callersMethodDeviceCreate
(req *types.DeviceCreateRequest)
admin/internal/logic/device_create_logic.go:30
↓ 1 callersFunctionDeviceCreateHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_create_handler.go:12
↓ 1 callersMethodDeviceDelete
(req *types.DeviceDeleteRequest)
admin/internal/logic/device_delete_logic.go:29
↓ 1 callersFunctionDeviceDeleteHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_delete_handler.go:12
↓ 1 callersMethodDeviceList
(req *types.DeviceListRequest)
admin/internal/logic/device_list_logic.go:28
↓ 1 callersFunctionDeviceListHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_list_handler.go:13
↓ 1 callersMethodDeviceModify
(req *types.DeviceModifyRequest)
admin/internal/logic/device_modify_logic.go:26
↓ 1 callersFunctionDeviceModifyHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_modify_handler.go:12
↓ 1 callersFunctionGenerateToken
(id uint, identity, name string, second int)
helper/helper.go:36
↓ 1 callersFunctionGetDeviceList
GetDeviceList 获取设备列表
models/device_basic.go:23
↓ 1 callersFunctionNewAuthLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
user/rpc/internal/logic/auth_logic.go:20
↓ 1 callersFunctionNewDeviceClient
(cc grpc.ClientConnInterface)
device/types/device/device_grpc.pb.go:32
↓ 1 callersFunctionNewDeviceCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_create_logic.go:22
↓ 1 callersFunctionNewDeviceDeleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_delete_logic.go:21
↓ 1 callersFunctionNewDeviceListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_list_logic.go:20
↓ 1 callersFunctionNewDeviceModifyLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_modify_logic.go:18
↓ 1 callersFunctionNewDeviceServer
(svcCtx *svc.ServiceContext)
device/internal/server/device_server.go:19
↓ 1 callersFunctionNewMqttServer
(mqttBroker, clientID, password string)
device/internal/mqtt/mqtt.go:14
↓ 1 callersFunctionNewOpenAuthLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
user/rpc/internal/logic/open_auth_logic.go:23
↓ 1 callersFunctionNewProductCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_create_logic.go:19
↓ 1 callersFunctionNewProductDeleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_delete_logic.go:20
↓ 1 callersFunctionNewProductListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_list_logic.go:20
↓ 1 callersFunctionNewProductModifyLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_modify_logic.go:18
↓ 1 callersFunctionNewSendMessageLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
open/internal/logic/send_message_logic.go:19
↓ 1 callersFunctionNewSendMessageLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
device/internal/logic/send_message_logic.go:19
↓ 1 callersFunctionNewServiceContext
(c config.Config)
open/internal/svc/service_context.go:16
↓ 1 callersFunctionNewServiceContext
(c config.Config)
user/internal/svc/service_context.go:14
↓ 1 callersFunctionNewServiceContext
(c config.Config)
user/rpc/internal/svc/service_context.go:14
↓ 1 callersFunctionNewServiceContext
(c config.Config)
device/internal/svc/service_context.go:14
↓ 1 callersFunctionNewServiceContext
(c config.Config)
admin/internal/svc/service_context.go:19
↓ 1 callersFunctionNewUserLoginLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
user/internal/logic/user_login_logic.go:21
↓ 1 callersFunctionNewUserServer
(svcCtx *svc.ServiceContext)
user/rpc/internal/server/user_server.go:19
↓ 1 callersMethodOpenAuth
(ctx context.Context, in *OpenAuthRequest, opts ...grpc.CallOption)
user/rpc/user/user.go:23
↓ 1 callersMethodOpenAuth
(in *user.OpenAuthRequest)
user/rpc/internal/logic/open_auth_logic.go:31
↓ 1 callersMethodProductCreate
(req *types.ProductCreateRequest)
admin/internal/logic/product_create_logic.go:27
↓ 1 callersFunctionProductCreateHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_create_handler.go:12
↓ 1 callersMethodProductDelete
(req *types.ProductDeleteRequest)
admin/internal/logic/product_delete_logic.go:28
↓ 1 callersFunctionProductDeleteHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_delete_handler.go:12
↓ 1 callersFunctionProductList
(name string)
models/product_basic.go:17
↓ 1 callersMethodProductList
(req *types.ProductListRequst)
admin/internal/logic/product_list_logic.go:28
↓ 1 callersFunctionProductListHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_list_handler.go:12
↓ 1 callersMethodProductModify
(req *types.ProductModifyRequest)
admin/internal/logic/product_modify_logic.go:26
↓ 1 callersFunctionProductModifyHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_modify_handler.go:12
↓ 1 callersFunctionRFC3339ToNormalTime
RFC3339ToNormalTime RFC3339 日期格式标准化
helper/helper.go:29
↓ 1 callersFunctionRegisterDeviceServer
(s grpc.ServiceRegistrar, srv DeviceServer)
device/types/device/device_grpc.pb.go:69
↓ 1 callersFunctionRegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
open/internal/handler/routes.go:12
↓ 1 callersFunctionRegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
user/internal/handler/routes.go:12
↓ 1 callersFunctionRegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
admin/internal/handler/routes.go:12
↓ 1 callersFunctionRegisterUserServer
(s grpc.ServiceRegistrar, srv UserServer)
user/rpc/types/user/user_grpc.pb.go:83
↓ 1 callersMethodSendMessage
(req *types.SendMessageRequest)
open/internal/logic/send_message_logic.go:27
↓ 1 callersMethodSendMessage
(in *device.SendMessageRequest)
device/internal/logic/send_message_logic.go:27
↓ 1 callersFunctionSendMessageHandler
(svcCtx *svc.ServiceContext)
open/internal/handler/send_message_handler.go:12
↓ 1 callersMethodString
()
device/types/device/device.pb.go:101
↓ 1 callersFunctionUpdateDeviceOnlineTime
UpdateDeviceOnlineTime 更新设备上线时间 productKey 产品 key deviceKey 设备 key
models/device_basic.go:37
↓ 1 callersMethodUserLogin
(req *types.UserLoginRequest)
user/internal/logic/user_login_logic.go:29
↓ 1 callersFunctionUserLoginHandler
(svcCtx *svc.ServiceContext)
user/internal/handler/user_login_handler.go:12
↓ 1 callersFunctionfile_device_proto_init
()
device/types/device/device.pb.go:173
↓ 1 callersFunctionfile_user_proto_init
()
user/rpc/types/user/user.pb.go:284
MethodAuth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/types/user/user_grpc.pb.go:37
MethodAuth
(context.Context, *UserAuthRequest)
user/rpc/types/user/user_grpc.pb.go:59
MethodAuth
(context.Context, *UserAuthRequest)
user/rpc/types/user/user_grpc.pb.go:68
MethodAuth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/user/user.go:37
MethodAuth
(ctx context.Context, in *user.UserAuthRequest)
user/rpc/internal/server/user_server.go:25
MethodDescriptor
Deprecated: Use OpenAuthRequest.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:59
MethodDescriptor
Deprecated: Use OpenAuthReply.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:104
MethodDescriptor
Deprecated: Use UserAuthRequest.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:144
MethodDescriptor
Deprecated: Use UserAuthReply.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:193
MethodDescriptor
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
device/types/device/device.pb.go:61
MethodDescriptor
Deprecated: Use SendMessageReply.ProtoReflect.Descriptor instead.
device/types/device/device.pb.go:120
MethodGetBody
()
user/rpc/types/user/user.pb.go:63
MethodGetData
()
device/types/device/device.pb.go:79
MethodGetDeviceKey
()
device/types/device/device.pb.go:72
MethodGetExtend
()
user/rpc/types/user/user.pb.go:211
MethodGetId
()
user/rpc/types/user/user.pb.go:204
MethodGetIdentity
()
user/rpc/types/user/user.pb.go:197
MethodGetProductKey
()
device/types/device/device.pb.go:65
MethodGetToken
()
user/rpc/types/user/user.pb.go:148
next →1–100 of 170, ranked by callers