Documentation
¶
Index ¶
- Variables
- func RegisterWasabeeFederationServer(s grpc.ServiceRegistrar, srv WasabeeFederationServer)
- type AgentLocation
- func (*AgentLocation) Descriptor() ([]byte, []int)deprecated
- func (x *AgentLocation) GetGoogleid() string
- func (x *AgentLocation) GetLat() float32
- func (x *AgentLocation) GetLng() float32
- func (*AgentLocation) ProtoMessage()
- func (x *AgentLocation) ProtoReflect() protoreflect.Message
- func (x *AgentLocation) Reset()
- func (x *AgentLocation) String() string
- type CommunityID
- func (*CommunityID) Descriptor() ([]byte, []int)deprecated
- func (x *CommunityID) GetCommunityname() string
- func (x *CommunityID) GetGoogleid() string
- func (*CommunityID) ProtoMessage()
- func (x *CommunityID) ProtoReflect() protoreflect.Message
- func (x *CommunityID) Reset()
- func (x *CommunityID) String() string
- type Error
- type FBData
- type IntelData
- func (*IntelData) Descriptor() ([]byte, []int)deprecated
- func (x *IntelData) GetFaction() string
- func (x *IntelData) GetGoogleid() string
- func (x *IntelData) GetName() string
- func (*IntelData) ProtoMessage()
- func (x *IntelData) ProtoReflect() protoreflect.Message
- func (x *IntelData) Reset()
- func (x *IntelData) String() string
- type TelegramID
- func (*TelegramID) Descriptor() ([]byte, []int)deprecated
- func (x *TelegramID) GetGoogleid() string
- func (x *TelegramID) GetName() string
- func (x *TelegramID) GetTelegramid() int64
- func (*TelegramID) ProtoMessage()
- func (x *TelegramID) ProtoReflect() protoreflect.Message
- func (x *TelegramID) Reset()
- func (x *TelegramID) String() string
- type Token
- type UnimplementedWasabeeFederationServer
- func (UnimplementedWasabeeFederationServer) AddFirebaseToken(context.Context, *FBData) (*Error, error)
- func (UnimplementedWasabeeFederationServer) RevokeJWT(context.Context, *Token) (*Error, error)
- func (UnimplementedWasabeeFederationServer) SetAgentLocation(context.Context, *AgentLocation) (*Error, error)
- func (UnimplementedWasabeeFederationServer) SetCommunityID(context.Context, *CommunityID) (*Error, error)
- func (UnimplementedWasabeeFederationServer) SetIntelData(context.Context, *IntelData) (*Error, error)
- func (UnimplementedWasabeeFederationServer) SetTelegramID(context.Context, *TelegramID) (*Error, error)
- type UnsafeWasabeeFederationServer
- type WasabeeFederationClient
- type WasabeeFederationServer
Constants ¶
This section is empty.
Variables ¶
var File_pb_wasabee_proto protoreflect.FileDescriptor
var WasabeeFederation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wasabee.WasabeeFederation", HandlerType: (*WasabeeFederationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetCommunityID", Handler: _WasabeeFederation_SetCommunityID_Handler, }, { MethodName: "SetAgentLocation", Handler: _WasabeeFederation_SetAgentLocation_Handler, }, { MethodName: "SetIntelData", Handler: _WasabeeFederation_SetIntelData_Handler, }, { MethodName: "AddFirebaseToken", Handler: _WasabeeFederation_AddFirebaseToken_Handler, }, { MethodName: "RevokeJWT", Handler: _WasabeeFederation_RevokeJWT_Handler, }, { MethodName: "SetTelegramID", Handler: _WasabeeFederation_SetTelegramID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/wasabee.proto", }
WasabeeFederation_ServiceDesc is the grpc.ServiceDesc for WasabeeFederation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWasabeeFederationServer ¶
func RegisterWasabeeFederationServer(s grpc.ServiceRegistrar, srv WasabeeFederationServer)
Types ¶
type AgentLocation ¶
type AgentLocation struct { Googleid string `protobuf:"bytes,1,opt,name=googleid,proto3" json:"googleid,omitempty"` Lat float32 `protobuf:"fixed32,2,opt,name=lat,proto3" json:"lat,omitempty"` Lng float32 `protobuf:"fixed32,3,opt,name=lng,proto3" json:"lng,omitempty"` // contains filtered or unexported fields }
func (*AgentLocation) Descriptor
deprecated
func (*AgentLocation) Descriptor() ([]byte, []int)
Deprecated: Use AgentLocation.ProtoReflect.Descriptor instead.
func (*AgentLocation) GetGoogleid ¶
func (x *AgentLocation) GetGoogleid() string
func (*AgentLocation) GetLat ¶
func (x *AgentLocation) GetLat() float32
func (*AgentLocation) GetLng ¶
func (x *AgentLocation) GetLng() float32
func (*AgentLocation) ProtoMessage ¶
func (*AgentLocation) ProtoMessage()
func (*AgentLocation) ProtoReflect ¶
func (x *AgentLocation) ProtoReflect() protoreflect.Message
func (*AgentLocation) Reset ¶
func (x *AgentLocation) Reset()
func (*AgentLocation) String ¶
func (x *AgentLocation) String() string
type CommunityID ¶
type CommunityID struct { Googleid string `protobuf:"bytes,1,opt,name=googleid,proto3" json:"googleid,omitempty"` Communityname string `protobuf:"bytes,2,opt,name=communityname,proto3" json:"communityname,omitempty"` // contains filtered or unexported fields }
func (*CommunityID) Descriptor
deprecated
func (*CommunityID) Descriptor() ([]byte, []int)
Deprecated: Use CommunityID.ProtoReflect.Descriptor instead.
func (*CommunityID) GetCommunityname ¶
func (x *CommunityID) GetCommunityname() string
func (*CommunityID) GetGoogleid ¶
func (x *CommunityID) GetGoogleid() string
func (*CommunityID) ProtoMessage ¶
func (*CommunityID) ProtoMessage()
func (*CommunityID) ProtoReflect ¶
func (x *CommunityID) ProtoReflect() protoreflect.Message
func (*CommunityID) Reset ¶
func (x *CommunityID) Reset()
func (*CommunityID) String ¶
func (x *CommunityID) String() string
type Error ¶
type Error struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type FBData ¶
type FBData struct { Googleid string `protobuf:"bytes,1,opt,name=googleid,proto3" json:"googleid,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*FBData) Descriptor
deprecated
func (*FBData) GetGoogleid ¶
func (*FBData) ProtoMessage ¶
func (*FBData) ProtoMessage()
func (*FBData) ProtoReflect ¶
func (x *FBData) ProtoReflect() protoreflect.Message
type IntelData ¶
type IntelData struct { Googleid string `protobuf:"bytes,1,opt,name=googleid,proto3" json:"googleid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Faction string `protobuf:"bytes,3,opt,name=faction,proto3" json:"faction,omitempty"` // contains filtered or unexported fields }
func (*IntelData) Descriptor
deprecated
func (*IntelData) GetFaction ¶
func (*IntelData) GetGoogleid ¶
func (*IntelData) ProtoMessage ¶
func (*IntelData) ProtoMessage()
func (*IntelData) ProtoReflect ¶
func (x *IntelData) ProtoReflect() protoreflect.Message
type TelegramID ¶
type TelegramID struct { Googleid string `protobuf:"bytes,1,opt,name=googleid,proto3" json:"googleid,omitempty"` Telegramid int64 `protobuf:"varint,2,opt,name=telegramid,proto3" json:"telegramid,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*TelegramID) Descriptor
deprecated
func (*TelegramID) Descriptor() ([]byte, []int)
Deprecated: Use TelegramID.ProtoReflect.Descriptor instead.
func (*TelegramID) GetGoogleid ¶
func (x *TelegramID) GetGoogleid() string
func (*TelegramID) GetName ¶
func (x *TelegramID) GetName() string
func (*TelegramID) GetTelegramid ¶
func (x *TelegramID) GetTelegramid() int64
func (*TelegramID) ProtoMessage ¶
func (*TelegramID) ProtoMessage()
func (*TelegramID) ProtoReflect ¶
func (x *TelegramID) ProtoReflect() protoreflect.Message
func (*TelegramID) Reset ¶
func (x *TelegramID) Reset()
func (*TelegramID) String ¶
func (x *TelegramID) String() string
type Token ¶
type Token struct { Tokenid string `protobuf:"bytes,1,opt,name=tokenid,proto3" json:"tokenid,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetTokenid ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedWasabeeFederationServer ¶
type UnimplementedWasabeeFederationServer struct { }
UnimplementedWasabeeFederationServer must be embedded to have forward compatible implementations.
func (UnimplementedWasabeeFederationServer) AddFirebaseToken ¶
func (UnimplementedWasabeeFederationServer) SetAgentLocation ¶
func (UnimplementedWasabeeFederationServer) SetAgentLocation(context.Context, *AgentLocation) (*Error, error)
func (UnimplementedWasabeeFederationServer) SetCommunityID ¶
func (UnimplementedWasabeeFederationServer) SetCommunityID(context.Context, *CommunityID) (*Error, error)
func (UnimplementedWasabeeFederationServer) SetIntelData ¶
func (UnimplementedWasabeeFederationServer) SetTelegramID ¶
func (UnimplementedWasabeeFederationServer) SetTelegramID(context.Context, *TelegramID) (*Error, error)
type UnsafeWasabeeFederationServer ¶
type UnsafeWasabeeFederationServer interface {
// contains filtered or unexported methods
}
UnsafeWasabeeFederationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WasabeeFederationServer will result in compilation errors.
type WasabeeFederationClient ¶
type WasabeeFederationClient interface { SetCommunityID(ctx context.Context, in *CommunityID, opts ...grpc.CallOption) (*Error, error) SetAgentLocation(ctx context.Context, in *AgentLocation, opts ...grpc.CallOption) (*Error, error) SetIntelData(ctx context.Context, in *IntelData, opts ...grpc.CallOption) (*Error, error) AddFirebaseToken(ctx context.Context, in *FBData, opts ...grpc.CallOption) (*Error, error) RevokeJWT(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Error, error) SetTelegramID(ctx context.Context, in *TelegramID, opts ...grpc.CallOption) (*Error, error) }
WasabeeFederationClient is the client API for WasabeeFederation service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWasabeeFederationClient ¶
func NewWasabeeFederationClient(cc grpc.ClientConnInterface) WasabeeFederationClient
type WasabeeFederationServer ¶
type WasabeeFederationServer interface { SetCommunityID(context.Context, *CommunityID) (*Error, error) SetAgentLocation(context.Context, *AgentLocation) (*Error, error) SetIntelData(context.Context, *IntelData) (*Error, error) AddFirebaseToken(context.Context, *FBData) (*Error, error) RevokeJWT(context.Context, *Token) (*Error, error) SetTelegramID(context.Context, *TelegramID) (*Error, error) // contains filtered or unexported methods }
WasabeeFederationServer is the server API for WasabeeFederation service. All implementations must embed UnimplementedWasabeeFederationServer for forward compatibility