✨ Add service type for pusher
This commit is contained in:
parent
f51b22f0e8
commit
1b5b2c42e5
@ -66,6 +66,8 @@ func (v *ServiceRpcServer) AddService(ctx context.Context, info *proto.ServiceIn
|
|||||||
|
|
||||||
if info.GetId() != clientId {
|
if info.GetId() != clientId {
|
||||||
return nil, status.Errorf(codes.InvalidArgument, "client_id mismatch in metadata")
|
return nil, status.Errorf(codes.InvalidArgument, "client_id mismatch in metadata")
|
||||||
|
} else if len(clientId) == 0 {
|
||||||
|
return nil, status.Errorf(codes.InvalidArgument, "client_id must not be blank")
|
||||||
}
|
}
|
||||||
|
|
||||||
in := &ServiceInstance{
|
in := &ServiceInstance{
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package nex
|
package nex
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ServiceTypeAuth = "id"
|
ServiceTypeAuth = "id"
|
||||||
|
ServiceTypePusher = "pusher"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user