Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GetcharZp/iot-platform
/ functions
Functions
170 in github.com/GetcharZp/iot-platform
⨍
Functions
170
◇
Types & classes
79
↓ 9 callers
Method
String
()
user/rpc/types/user/user.pb.go:85
↓ 6 callers
Function
HttpPost
(url string, data []byte, header ...byte)
helper/helper.go:115
↓ 5 callers
Function
NewDB
()
models/init.go:12
↓ 4 callers
Function
HttpDelete
(url string, data []byte, header ...byte)
helper/helper.go:107
↓ 4 callers
Function
If
(condition bool, trueValue, falseValue interface{})
helper/helper.go:21
↓ 4 callers
Function
file_user_proto_rawDescGZIP
()
user/rpc/types/user/user.pb.go:255
↓ 4 callers
Function
httpRequest
httpRequest .
helper/helper.go:68
↓ 3 callers
Method
Auth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/types/user/user_grpc.pb.go:25
↓ 3 callers
Function
HttpGet
(url string, header ...byte)
helper/helper.go:119
↓ 3 callers
Function
Md5
(s string)
helper/helper.go:17
↓ 3 callers
Method
OpenAuth
(ctx context.Context, in *OpenAuthRequest, opts ...grpc.CallOption)
user/rpc/types/user/user_grpc.pb.go:26
↓ 3 callers
Method
SendMessage
(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption)
device/types/device/device_grpc.pb.go:25
↓ 2 callers
Function
HttpPut
(url string, data []byte, header ...byte)
helper/helper.go:111
↓ 2 callers
Function
NewDevice
(cli zrpc.Client)
device/device/device.go:28
↓ 2 callers
Function
NewUser
(cli zrpc.Client)
user/rpc/user/user.go:31
↓ 2 callers
Function
NewUserClient
(cc grpc.ClientConnInterface)
user/rpc/types/user/user_grpc.pb.go:33
↓ 2 callers
Method
SendMessage
(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption)
device/device/device.go:20
↓ 2 callers
Function
file_device_proto_rawDescGZIP
()
device/types/device/device.pb.go:150
↓ 1 callers
Function
AnalyzeToken
(token string)
helper/helper.go:53
↓ 1 callers
Method
Auth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/user/user.go:22
↓ 1 callers
Method
Auth
(in *user.UserAuthRequest)
user/rpc/internal/logic/auth_logic.go:28
↓ 1 callers
Function
CreateAuthUser
(in *CreateAuthUserRequest)
api/api.go:10
↓ 1 callers
Function
DeleteAuthUser
(clientId string)
api/api.go:24
↓ 1 callers
Method
DeviceCreate
(req *types.DeviceCreateRequest)
admin/internal/logic/device_create_logic.go:30
↓ 1 callers
Function
DeviceCreateHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_create_handler.go:12
↓ 1 callers
Method
DeviceDelete
(req *types.DeviceDeleteRequest)
admin/internal/logic/device_delete_logic.go:29
↓ 1 callers
Function
DeviceDeleteHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_delete_handler.go:12
↓ 1 callers
Method
DeviceList
(req *types.DeviceListRequest)
admin/internal/logic/device_list_logic.go:28
↓ 1 callers
Function
DeviceListHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_list_handler.go:13
↓ 1 callers
Method
DeviceModify
(req *types.DeviceModifyRequest)
admin/internal/logic/device_modify_logic.go:26
↓ 1 callers
Function
DeviceModifyHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/device_modify_handler.go:12
↓ 1 callers
Function
GenerateToken
(id uint, identity, name string, second int)
helper/helper.go:36
↓ 1 callers
Function
GetDeviceList
GetDeviceList 获取设备列表
models/device_basic.go:23
↓ 1 callers
Function
NewAuthLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
user/rpc/internal/logic/auth_logic.go:20
↓ 1 callers
Function
NewDeviceClient
(cc grpc.ClientConnInterface)
device/types/device/device_grpc.pb.go:32
↓ 1 callers
Function
NewDeviceCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_create_logic.go:22
↓ 1 callers
Function
NewDeviceDeleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_delete_logic.go:21
↓ 1 callers
Function
NewDeviceListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_list_logic.go:20
↓ 1 callers
Function
NewDeviceModifyLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/device_modify_logic.go:18
↓ 1 callers
Function
NewDeviceServer
(svcCtx *svc.ServiceContext)
device/internal/server/device_server.go:19
↓ 1 callers
Function
NewMqttServer
(mqttBroker, clientID, password string)
device/internal/mqtt/mqtt.go:14
↓ 1 callers
Function
NewOpenAuthLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
user/rpc/internal/logic/open_auth_logic.go:23
↓ 1 callers
Function
NewProductCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_create_logic.go:19
↓ 1 callers
Function
NewProductDeleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_delete_logic.go:20
↓ 1 callers
Function
NewProductListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_list_logic.go:20
↓ 1 callers
Function
NewProductModifyLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
admin/internal/logic/product_modify_logic.go:18
↓ 1 callers
Function
NewSendMessageLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
open/internal/logic/send_message_logic.go:19
↓ 1 callers
Function
NewSendMessageLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
device/internal/logic/send_message_logic.go:19
↓ 1 callers
Function
NewServiceContext
(c config.Config)
open/internal/svc/service_context.go:16
↓ 1 callers
Function
NewServiceContext
(c config.Config)
user/internal/svc/service_context.go:14
↓ 1 callers
Function
NewServiceContext
(c config.Config)
user/rpc/internal/svc/service_context.go:14
↓ 1 callers
Function
NewServiceContext
(c config.Config)
device/internal/svc/service_context.go:14
↓ 1 callers
Function
NewServiceContext
(c config.Config)
admin/internal/svc/service_context.go:19
↓ 1 callers
Function
NewUserLoginLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
user/internal/logic/user_login_logic.go:21
↓ 1 callers
Function
NewUserServer
(svcCtx *svc.ServiceContext)
user/rpc/internal/server/user_server.go:19
↓ 1 callers
Method
OpenAuth
(ctx context.Context, in *OpenAuthRequest, opts ...grpc.CallOption)
user/rpc/user/user.go:23
↓ 1 callers
Method
OpenAuth
(in *user.OpenAuthRequest)
user/rpc/internal/logic/open_auth_logic.go:31
↓ 1 callers
Method
ProductCreate
(req *types.ProductCreateRequest)
admin/internal/logic/product_create_logic.go:27
↓ 1 callers
Function
ProductCreateHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_create_handler.go:12
↓ 1 callers
Method
ProductDelete
(req *types.ProductDeleteRequest)
admin/internal/logic/product_delete_logic.go:28
↓ 1 callers
Function
ProductDeleteHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_delete_handler.go:12
↓ 1 callers
Function
ProductList
(name string)
models/product_basic.go:17
↓ 1 callers
Method
ProductList
(req *types.ProductListRequst)
admin/internal/logic/product_list_logic.go:28
↓ 1 callers
Function
ProductListHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_list_handler.go:12
↓ 1 callers
Method
ProductModify
(req *types.ProductModifyRequest)
admin/internal/logic/product_modify_logic.go:26
↓ 1 callers
Function
ProductModifyHandler
(svcCtx *svc.ServiceContext)
admin/internal/handler/product_modify_handler.go:12
↓ 1 callers
Function
RFC3339ToNormalTime
RFC3339ToNormalTime RFC3339 日期格式标准化
helper/helper.go:29
↓ 1 callers
Function
RegisterDeviceServer
(s grpc.ServiceRegistrar, srv DeviceServer)
device/types/device/device_grpc.pb.go:69
↓ 1 callers
Function
RegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
open/internal/handler/routes.go:12
↓ 1 callers
Function
RegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
user/internal/handler/routes.go:12
↓ 1 callers
Function
RegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
admin/internal/handler/routes.go:12
↓ 1 callers
Function
RegisterUserServer
(s grpc.ServiceRegistrar, srv UserServer)
user/rpc/types/user/user_grpc.pb.go:83
↓ 1 callers
Method
SendMessage
(req *types.SendMessageRequest)
open/internal/logic/send_message_logic.go:27
↓ 1 callers
Method
SendMessage
(in *device.SendMessageRequest)
device/internal/logic/send_message_logic.go:27
↓ 1 callers
Function
SendMessageHandler
(svcCtx *svc.ServiceContext)
open/internal/handler/send_message_handler.go:12
↓ 1 callers
Method
String
()
device/types/device/device.pb.go:101
↓ 1 callers
Function
UpdateDeviceOnlineTime
UpdateDeviceOnlineTime 更新设备上线时间 productKey 产品 key deviceKey 设备 key
models/device_basic.go:37
↓ 1 callers
Method
UserLogin
(req *types.UserLoginRequest)
user/internal/logic/user_login_logic.go:29
↓ 1 callers
Function
UserLoginHandler
(svcCtx *svc.ServiceContext)
user/internal/handler/user_login_handler.go:12
↓ 1 callers
Function
file_device_proto_init
()
device/types/device/device.pb.go:173
↓ 1 callers
Function
file_user_proto_init
()
user/rpc/types/user/user.pb.go:284
Method
Auth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/types/user/user_grpc.pb.go:37
Method
Auth
(context.Context, *UserAuthRequest)
user/rpc/types/user/user_grpc.pb.go:59
Method
Auth
(context.Context, *UserAuthRequest)
user/rpc/types/user/user_grpc.pb.go:68
Method
Auth
(ctx context.Context, in *UserAuthRequest, opts ...grpc.CallOption)
user/rpc/user/user.go:37
Method
Auth
(ctx context.Context, in *user.UserAuthRequest)
user/rpc/internal/server/user_server.go:25
Method
Descriptor
Deprecated: Use OpenAuthRequest.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:59
Method
Descriptor
Deprecated: Use OpenAuthReply.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:104
Method
Descriptor
Deprecated: Use UserAuthRequest.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:144
Method
Descriptor
Deprecated: Use UserAuthReply.ProtoReflect.Descriptor instead.
user/rpc/types/user/user.pb.go:193
Method
Descriptor
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
device/types/device/device.pb.go:61
Method
Descriptor
Deprecated: Use SendMessageReply.ProtoReflect.Descriptor instead.
device/types/device/device.pb.go:120
Method
GetBody
()
user/rpc/types/user/user.pb.go:63
Method
GetData
()
device/types/device/device.pb.go:79
Method
GetDeviceKey
()
device/types/device/device.pb.go:72
Method
GetExtend
()
user/rpc/types/user/user.pb.go:211
Method
GetId
()
user/rpc/types/user/user.pb.go:204
Method
GetIdentity
()
user/rpc/types/user/user.pb.go:197
Method
GetProductKey
()
device/types/device/device.pb.go:65
Method
GetToken
()
user/rpc/types/user/user.pb.go:148
next →
1–100 of 170, ranked by callers