federation

package
v0.0.0-...-2b7f6e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_wasabee_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() string

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FBData.ProtoReflect.Descriptor instead.

func (*FBData) GetGoogleid

func (x *FBData) GetGoogleid() string

func (*FBData) GetToken

func (x *FBData) GetToken() string

func (*FBData) ProtoMessage

func (*FBData) ProtoMessage()

func (*FBData) ProtoReflect

func (x *FBData) ProtoReflect() protoreflect.Message

func (*FBData) Reset

func (x *FBData) Reset()

func (*FBData) String

func (x *FBData) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IntelData.ProtoReflect.Descriptor instead.

func (*IntelData) GetFaction

func (x *IntelData) GetFaction() string

func (*IntelData) GetGoogleid

func (x *IntelData) GetGoogleid() string

func (*IntelData) GetName

func (x *IntelData) GetName() string

func (*IntelData) ProtoMessage

func (*IntelData) ProtoMessage()

func (*IntelData) ProtoReflect

func (x *IntelData) ProtoReflect() protoreflect.Message

func (*IntelData) Reset

func (x *IntelData) Reset()

func (*IntelData) String

func (x *IntelData) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetTokenid

func (x *Token) GetTokenid() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedWasabeeFederationServer

type UnimplementedWasabeeFederationServer struct {
}

UnimplementedWasabeeFederationServer must be embedded to have forward compatible implementations.

func (UnimplementedWasabeeFederationServer) AddFirebaseToken

func (UnimplementedWasabeeFederationServer) RevokeJWT

func (UnimplementedWasabeeFederationServer) SetAgentLocation

func (UnimplementedWasabeeFederationServer) SetCommunityID

func (UnimplementedWasabeeFederationServer) SetIntelData

func (UnimplementedWasabeeFederationServer) SetTelegramID

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.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL