Documentation ¶
Index ¶
- func RegisterMosquitoAuthServer(s *grpc.Server, srv MosquitoAuthServer)
- type AllowPubkey
- func (*AllowPubkey) Descriptor() ([]byte, []int)
- func (m *AllowPubkey) GetAllow() bool
- func (m *AllowPubkey) GetPubkey() string
- func (*AllowPubkey) ProtoMessage()
- func (m *AllowPubkey) Reset()
- func (m *AllowPubkey) String() string
- func (m *AllowPubkey) XXX_DiscardUnknown()
- func (m *AllowPubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllowPubkey) XXX_Merge(src proto.Message)
- func (m *AllowPubkey) XXX_Size() int
- func (m *AllowPubkey) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Knot
- func (*Knot) Descriptor() ([]byte, []int)
- func (m *Knot) GetBoottimestamp() int64
- func (m *Knot) GetIp() string
- func (m *Knot) GetMosquitoes() int32
- func (m *Knot) GetName() string
- func (m *Knot) GetPort() string
- func (m *Knot) GetWings() []string
- func (*Knot) ProtoMessage()
- func (m *Knot) Reset()
- func (m *Knot) String() string
- func (m *Knot) XXX_DiscardUnknown()
- func (m *Knot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Knot) XXX_Merge(src proto.Message)
- func (m *Knot) XXX_Size() int
- func (m *Knot) XXX_Unmarshal(b []byte) error
- type MosquitoAuthClient
- type MosquitoAuthServer
- type MosquitoAuth_KnotListClient
- type MosquitoAuth_KnotListServer
- type MosquitoConfig
- func (*MosquitoConfig) Descriptor() ([]byte, []int)
- func (m *MosquitoConfig) GetKnotKey() string
- func (m *MosquitoConfig) GetKnotPort() string
- func (m *MosquitoConfig) GetMosquitoIP() string
- func (m *MosquitoConfig) GetMosquitoKey() string
- func (*MosquitoConfig) ProtoMessage()
- func (m *MosquitoConfig) Reset()
- func (m *MosquitoConfig) String() string
- func (m *MosquitoConfig) XXX_DiscardUnknown()
- func (m *MosquitoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MosquitoConfig) XXX_Merge(src proto.Message)
- func (m *MosquitoConfig) XXX_Size() int
- func (m *MosquitoConfig) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetIp() string
- func (m *Peer) GetPubkey() string
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Pubkey
- func (*Pubkey) Descriptor() ([]byte, []int)
- func (m *Pubkey) GetPubkey() string
- func (*Pubkey) ProtoMessage()
- func (m *Pubkey) Reset()
- func (m *Pubkey) String() string
- func (m *Pubkey) XXX_DiscardUnknown()
- func (m *Pubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pubkey) XXX_Merge(src proto.Message)
- func (m *Pubkey) XXX_Size() int
- func (m *Pubkey) XXX_Unmarshal(b []byte) error
- type UnimplementedMosquitoAuthServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMosquitoAuthServer ¶
func RegisterMosquitoAuthServer(s *grpc.Server, srv MosquitoAuthServer)
Types ¶
type AllowPubkey ¶
type AllowPubkey struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Allow bool `protobuf:"varint,2,opt,name=allow,proto3" json:"allow,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AllowPubkey) Descriptor ¶
func (*AllowPubkey) Descriptor() ([]byte, []int)
func (*AllowPubkey) GetAllow ¶
func (m *AllowPubkey) GetAllow() bool
func (*AllowPubkey) GetPubkey ¶
func (m *AllowPubkey) GetPubkey() string
func (*AllowPubkey) ProtoMessage ¶
func (*AllowPubkey) ProtoMessage()
func (*AllowPubkey) Reset ¶
func (m *AllowPubkey) Reset()
func (*AllowPubkey) String ¶
func (m *AllowPubkey) String() string
func (*AllowPubkey) XXX_DiscardUnknown ¶
func (m *AllowPubkey) XXX_DiscardUnknown()
func (*AllowPubkey) XXX_Marshal ¶
func (m *AllowPubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowPubkey) XXX_Merge ¶
func (m *AllowPubkey) XXX_Merge(src proto.Message)
func (*AllowPubkey) XXX_Size ¶
func (m *AllowPubkey) XXX_Size() int
func (*AllowPubkey) XXX_Unmarshal ¶
func (m *AllowPubkey) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) XXX_Marshal ¶
type Knot ¶
type Knot struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` Wings []string `protobuf:"bytes,4,rep,name=wings,proto3" json:"wings,omitempty"` Boottimestamp int64 `protobuf:"varint,5,opt,name=boottimestamp,proto3" json:"boottimestamp,omitempty"` Mosquitoes int32 `protobuf:"varint,6,opt,name=mosquitoes,proto3" json:"mosquitoes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
type MosquitoAuthClient ¶
type MosquitoAuthClient interface { Authenticate(ctx context.Context, in *Pubkey, opts ...grpc.CallOption) (*MosquitoConfig, error) KnotList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (MosquitoAuth_KnotListClient, error) }
MosquitoAuthClient is the client API for MosquitoAuth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMosquitoAuthClient ¶
func NewMosquitoAuthClient(cc *grpc.ClientConn) MosquitoAuthClient
type MosquitoAuthServer ¶
type MosquitoAuthServer interface { Authenticate(context.Context, *Pubkey) (*MosquitoConfig, error) KnotList(*Empty, MosquitoAuth_KnotListServer) error }
MosquitoAuthServer is the server API for MosquitoAuth service.
type MosquitoAuth_KnotListClient ¶
type MosquitoAuth_KnotListClient interface { Recv() (*Knot, error) grpc.ClientStream }
type MosquitoAuth_KnotListServer ¶
type MosquitoAuth_KnotListServer interface { Send(*Knot) error grpc.ServerStream }
type MosquitoConfig ¶
type MosquitoConfig struct { KnotPort string `protobuf:"bytes,1,opt,name=knotPort,proto3" json:"knotPort,omitempty"` KnotKey string `protobuf:"bytes,2,opt,name=knotKey,proto3" json:"knotKey,omitempty"` MosquitoKey string `protobuf:"bytes,3,opt,name=mosquitoKey,proto3" json:"mosquitoKey,omitempty"` MosquitoIP string `protobuf:"bytes,4,opt,name=mosquitoIP,proto3" json:"mosquitoIP,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MosquitoConfig) Descriptor ¶
func (*MosquitoConfig) Descriptor() ([]byte, []int)
func (*MosquitoConfig) GetKnotKey ¶
func (m *MosquitoConfig) GetKnotKey() string
func (*MosquitoConfig) GetKnotPort ¶
func (m *MosquitoConfig) GetKnotPort() string
func (*MosquitoConfig) GetMosquitoIP ¶
func (m *MosquitoConfig) GetMosquitoIP() string
func (*MosquitoConfig) GetMosquitoKey ¶
func (m *MosquitoConfig) GetMosquitoKey() string
func (*MosquitoConfig) ProtoMessage ¶
func (*MosquitoConfig) ProtoMessage()
func (*MosquitoConfig) Reset ¶
func (m *MosquitoConfig) Reset()
func (*MosquitoConfig) String ¶
func (m *MosquitoConfig) String() string
func (*MosquitoConfig) XXX_DiscardUnknown ¶
func (m *MosquitoConfig) XXX_DiscardUnknown()
func (*MosquitoConfig) XXX_Marshal ¶
func (m *MosquitoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MosquitoConfig) XXX_Merge ¶
func (m *MosquitoConfig) XXX_Merge(src proto.Message)
func (*MosquitoConfig) XXX_Size ¶
func (m *MosquitoConfig) XXX_Size() int
func (*MosquitoConfig) XXX_Unmarshal ¶
func (m *MosquitoConfig) XXX_Unmarshal(b []byte) error
type Peer ¶
type Pubkey ¶
type Pubkey struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pubkey) XXX_Marshal ¶
type UnimplementedMosquitoAuthServer ¶
type UnimplementedMosquitoAuthServer struct { }
UnimplementedMosquitoAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedMosquitoAuthServer) Authenticate ¶
func (*UnimplementedMosquitoAuthServer) Authenticate(ctx context.Context, req *Pubkey) (*MosquitoConfig, error)
func (*UnimplementedMosquitoAuthServer) KnotList ¶
func (*UnimplementedMosquitoAuthServer) KnotList(req *Empty, srv MosquitoAuth_KnotListServer) error
Click to show internal directories.
Click to hide internal directories.