✨ 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{
|
||||||
|
@ -2,4 +2,5 @@ package nex
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ServiceTypeAuth = "id"
|
ServiceTypeAuth = "id"
|
||||||
|
ServiceTypePusher = "pusher"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user