pb

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGatewayLoginManagerServer

func RegisterGatewayLoginManagerServer(s *grpc.Server, srv GatewayLoginManagerServer)

Types

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown added in v1.0.1

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal added in v1.0.1

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge added in v1.0.1

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size added in v1.0.1

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal added in v1.0.1

func (m *Empty) XXX_Unmarshal(b []byte) error

type GatewayLoginManagerClient

type GatewayLoginManagerClient interface {
	LoginServerByServerInfo(ctx context.Context, in *ServerInfo, opts ...grpc.CallOption) (*LoginResponse, error)
	LoginServerByToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*LoginResponse, error)
	GetOpenIoTHubToken(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Token, error)
	GetGateWayToken(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Token, error)
}

GatewayLoginManagerClient is the client API for GatewayLoginManager service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGatewayLoginManagerClient

func NewGatewayLoginManagerClient(cc *grpc.ClientConn) GatewayLoginManagerClient

type GatewayLoginManagerServer

type GatewayLoginManagerServer interface {
	LoginServerByServerInfo(context.Context, *ServerInfo) (*LoginResponse, error)
	LoginServerByToken(context.Context, *Token) (*LoginResponse, error)
	GetOpenIoTHubToken(context.Context, *Empty) (*Token, error)
	GetGateWayToken(context.Context, *Empty) (*Token, error)
}

GatewayLoginManagerServer is the server API for GatewayLoginManager service.

type LoginResponse

type LoginResponse 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"`
	LoginStatus          bool     `protobuf:"varint,3,opt,name=LoginStatus,proto3" json:"LoginStatus,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginResponse) Descriptor

func (*LoginResponse) Descriptor() ([]byte, []int)

func (*LoginResponse) GetCode

func (m *LoginResponse) GetCode() string

func (*LoginResponse) GetLoginStatus

func (m *LoginResponse) GetLoginStatus() bool

func (*LoginResponse) GetMessage

func (m *LoginResponse) GetMessage() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) Reset

func (m *LoginResponse) Reset()

func (*LoginResponse) String

func (m *LoginResponse) String() string

func (*LoginResponse) XXX_DiscardUnknown added in v1.0.1

func (m *LoginResponse) XXX_DiscardUnknown()

func (*LoginResponse) XXX_Marshal added in v1.0.1

func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginResponse) XXX_Merge added in v1.0.1

func (m *LoginResponse) XXX_Merge(src proto.Message)

func (*LoginResponse) XXX_Size added in v1.0.1

func (m *LoginResponse) XXX_Size() int

func (*LoginResponse) XXX_Unmarshal added in v1.0.1

func (m *LoginResponse) XXX_Unmarshal(b []byte) error

type ServerInfo added in v1.0.1

type ServerInfo struct {
	ServerHost           string   `protobuf:"bytes,1,opt,name=ServerHost,proto3" json:"ServerHost,omitempty"`
	LoginKey             string   `protobuf:"bytes,2,opt,name=LoginKey,proto3" json:"LoginKey,omitempty"`
	ConnectionType       string   `protobuf:"bytes,3,opt,name=ConnectionType,proto3" json:"ConnectionType,omitempty"`
	LastId               string   `protobuf:"bytes,4,opt,name=LastId,proto3" json:"LastId,omitempty"`
	TcpPort              int32    `protobuf:"varint,5,opt,name=TcpPort,proto3" json:"TcpPort,omitempty"`
	KcpPort              int32    `protobuf:"varint,6,opt,name=KcpPort,proto3" json:"KcpPort,omitempty"`
	UdpApiPort           int32    `protobuf:"varint,7,opt,name=UdpApiPort,proto3" json:"UdpApiPort,omitempty"`
	KcpApiPort           int32    `protobuf:"varint,8,opt,name=KcpApiPort,proto3" json:"KcpApiPort,omitempty"`
	TlsPort              int32    `protobuf:"varint,9,opt,name=TlsPort,proto3" json:"TlsPort,omitempty"`
	GrpcPort             int32    `protobuf:"varint,10,opt,name=GrpcPort,proto3" json:"GrpcPort,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerInfo) Descriptor added in v1.0.1

func (*ServerInfo) Descriptor() ([]byte, []int)

func (*ServerInfo) GetConnectionType added in v1.0.1

func (m *ServerInfo) GetConnectionType() string

func (*ServerInfo) GetGrpcPort added in v1.0.1

func (m *ServerInfo) GetGrpcPort() int32

func (*ServerInfo) GetKcpApiPort added in v1.0.1

func (m *ServerInfo) GetKcpApiPort() int32

func (*ServerInfo) GetKcpPort added in v1.0.1

func (m *ServerInfo) GetKcpPort() int32

func (*ServerInfo) GetLastId added in v1.0.1

func (m *ServerInfo) GetLastId() string

func (*ServerInfo) GetLoginKey added in v1.0.1

func (m *ServerInfo) GetLoginKey() string

func (*ServerInfo) GetServerHost added in v1.0.1

func (m *ServerInfo) GetServerHost() string

func (*ServerInfo) GetTcpPort added in v1.0.1

func (m *ServerInfo) GetTcpPort() int32

func (*ServerInfo) GetTlsPort added in v1.0.1

func (m *ServerInfo) GetTlsPort() int32

func (*ServerInfo) GetUdpApiPort added in v1.0.1

func (m *ServerInfo) GetUdpApiPort() int32

func (*ServerInfo) ProtoMessage added in v1.0.1

func (*ServerInfo) ProtoMessage()

func (*ServerInfo) Reset added in v1.0.1

func (m *ServerInfo) Reset()

func (*ServerInfo) String added in v1.0.1

func (m *ServerInfo) String() string

func (*ServerInfo) XXX_DiscardUnknown added in v1.0.1

func (m *ServerInfo) XXX_DiscardUnknown()

func (*ServerInfo) XXX_Marshal added in v1.0.1

func (m *ServerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServerInfo) XXX_Merge added in v1.0.1

func (m *ServerInfo) XXX_Merge(src proto.Message)

func (*ServerInfo) XXX_Size added in v1.0.1

func (m *ServerInfo) XXX_Size() int

func (*ServerInfo) XXX_Unmarshal added in v1.0.1

func (m *ServerInfo) XXX_Unmarshal(b []byte) error

type StringValue added in v1.0.1

type StringValue struct {
	Value                string   `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StringValue) Descriptor added in v1.0.1

func (*StringValue) Descriptor() ([]byte, []int)

func (*StringValue) GetValue added in v1.0.1

func (m *StringValue) GetValue() string

func (*StringValue) ProtoMessage added in v1.0.1

func (*StringValue) ProtoMessage()

func (*StringValue) Reset added in v1.0.1

func (m *StringValue) Reset()

func (*StringValue) String added in v1.0.1

func (m *StringValue) String() string

func (*StringValue) XXX_DiscardUnknown added in v1.0.1

func (m *StringValue) XXX_DiscardUnknown()

func (*StringValue) XXX_Marshal added in v1.0.1

func (m *StringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringValue) XXX_Merge added in v1.0.1

func (m *StringValue) XXX_Merge(src proto.Message)

func (*StringValue) XXX_Size added in v1.0.1

func (m *StringValue) XXX_Size() int

func (*StringValue) XXX_Unmarshal added in v1.0.1

func (m *StringValue) XXX_Unmarshal(b []byte) error

type Token

type Token struct {
	Value                string   `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Token) Descriptor

func (*Token) Descriptor() ([]byte, []int)

func (*Token) GetValue

func (m *Token) GetValue() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown added in v1.0.1

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal added in v1.0.1

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge added in v1.0.1

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size added in v1.0.1

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal added in v1.0.1

func (m *Token) XXX_Unmarshal(b []byte) error

type UnimplementedGatewayLoginManagerServer

type UnimplementedGatewayLoginManagerServer struct {
}

UnimplementedGatewayLoginManagerServer can be embedded to have forward compatible implementations.

func (*UnimplementedGatewayLoginManagerServer) GetGateWayToken added in v1.0.4

func (*UnimplementedGatewayLoginManagerServer) GetGateWayToken(ctx context.Context, req *Empty) (*Token, error)

func (*UnimplementedGatewayLoginManagerServer) GetOpenIoTHubToken added in v1.0.4

func (*UnimplementedGatewayLoginManagerServer) GetOpenIoTHubToken(ctx context.Context, req *Empty) (*Token, error)

func (*UnimplementedGatewayLoginManagerServer) LoginServerByServerInfo added in v1.0.4

func (*UnimplementedGatewayLoginManagerServer) LoginServerByServerInfo(ctx context.Context, req *ServerInfo) (*LoginResponse, error)

func (*UnimplementedGatewayLoginManagerServer) LoginServerByToken

Jump to

Keyboard shortcuts

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