Documentation ¶
Index ¶
- func RegisterGateAPIServer(s *grpc.Server, srv GateAPIServer)
- type GateAPIClient
- type GateAPIServer
- type LivenessRequest
- func (*LivenessRequest) Descriptor() ([]byte, []int)
- func (*LivenessRequest) ProtoMessage()
- func (m *LivenessRequest) Reset()
- func (m *LivenessRequest) String() string
- func (m *LivenessRequest) XXX_DiscardUnknown()
- func (m *LivenessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LivenessRequest) XXX_Merge(src proto.Message)
- func (m *LivenessRequest) XXX_Size() int
- func (m *LivenessRequest) XXX_Unmarshal(b []byte) error
- type LivenessResponse
- func (*LivenessResponse) Descriptor() ([]byte, []int)
- func (m *LivenessResponse) GetCode() int32
- func (m *LivenessResponse) GetMsg() string
- func (*LivenessResponse) ProtoMessage()
- func (m *LivenessResponse) Reset()
- func (m *LivenessResponse) String() string
- func (m *LivenessResponse) XXX_DiscardUnknown()
- func (m *LivenessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LivenessResponse) XXX_Merge(src proto.Message)
- func (m *LivenessResponse) XXX_Size() int
- func (m *LivenessResponse) XXX_Unmarshal(b []byte) error
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetAutoLogin() bool
- func (m *LoginRequest) GetPassword() string
- func (m *LoginRequest) GetType() string
- func (m *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)
- func (m *LoginResponse) GetCode() int32
- func (m *LoginResponse) GetMsg() string
- func (m *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (m *LoginResponse) Reset()
- func (m *LoginResponse) String() string
- func (m *LoginResponse) XXX_DiscardUnknown()
- func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginResponse) XXX_Merge(src proto.Message)
- func (m *LoginResponse) XXX_Size() int
- func (m *LoginResponse) XXX_Unmarshal(b []byte) error
- type ReadinessRequest
- func (*ReadinessRequest) Descriptor() ([]byte, []int)
- func (*ReadinessRequest) ProtoMessage()
- func (m *ReadinessRequest) Reset()
- func (m *ReadinessRequest) String() string
- func (m *ReadinessRequest) XXX_DiscardUnknown()
- func (m *ReadinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadinessRequest) XXX_Merge(src proto.Message)
- func (m *ReadinessRequest) XXX_Size() int
- func (m *ReadinessRequest) XXX_Unmarshal(b []byte) error
- type ReadinessResponse
- func (*ReadinessResponse) Descriptor() ([]byte, []int)
- func (m *ReadinessResponse) GetCode() int32
- func (m *ReadinessResponse) GetMsg() string
- func (*ReadinessResponse) ProtoMessage()
- func (m *ReadinessResponse) Reset()
- func (m *ReadinessResponse) String() string
- func (m *ReadinessResponse) XXX_DiscardUnknown()
- func (m *ReadinessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadinessResponse) XXX_Merge(src proto.Message)
- func (m *ReadinessResponse) XXX_Size() int
- func (m *ReadinessResponse) XXX_Unmarshal(b []byte) error
- type SystemInfoRequest
- func (*SystemInfoRequest) Descriptor() ([]byte, []int)
- func (*SystemInfoRequest) ProtoMessage()
- func (m *SystemInfoRequest) Reset()
- func (m *SystemInfoRequest) String() string
- func (m *SystemInfoRequest) XXX_DiscardUnknown()
- func (m *SystemInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SystemInfoRequest) XXX_Merge(src proto.Message)
- func (m *SystemInfoRequest) XXX_Size() int
- func (m *SystemInfoRequest) XXX_Unmarshal(b []byte) error
- type SystemInfoResponse
- func (*SystemInfoResponse) Descriptor() ([]byte, []int)
- func (m *SystemInfoResponse) GetCode() int32
- func (m *SystemInfoResponse) GetData() *SystemInfoResponse_Data
- func (m *SystemInfoResponse) GetMsg() string
- func (*SystemInfoResponse) ProtoMessage()
- func (m *SystemInfoResponse) Reset()
- func (m *SystemInfoResponse) String() string
- func (m *SystemInfoResponse) XXX_DiscardUnknown()
- func (m *SystemInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SystemInfoResponse) XXX_Merge(src proto.Message)
- func (m *SystemInfoResponse) XXX_Size() int
- func (m *SystemInfoResponse) XXX_Unmarshal(b []byte) error
- type SystemInfoResponse_Data
- func (*SystemInfoResponse_Data) Descriptor() ([]byte, []int)
- func (m *SystemInfoResponse_Data) GetCopyright() string
- func (m *SystemInfoResponse_Data) GetDesc() string
- func (m *SystemInfoResponse_Data) GetHref() string
- func (m *SystemInfoResponse_Data) GetName() string
- func (m *SystemInfoResponse_Data) GetVersion() string
- func (*SystemInfoResponse_Data) ProtoMessage()
- func (m *SystemInfoResponse_Data) Reset()
- func (m *SystemInfoResponse_Data) String() string
- func (m *SystemInfoResponse_Data) XXX_DiscardUnknown()
- func (m *SystemInfoResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SystemInfoResponse_Data) XXX_Merge(src proto.Message)
- func (m *SystemInfoResponse_Data) XXX_Size() int
- func (m *SystemInfoResponse_Data) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGateAPIServer ¶
func RegisterGateAPIServer(s *grpc.Server, srv GateAPIServer)
Types ¶
type GateAPIClient ¶
type GateAPIClient interface { //Login. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) //Readiness. Readiness(ctx context.Context, in *ReadinessRequest, opts ...grpc.CallOption) (*ReadinessResponse, error) //Liveness. Liveness(ctx context.Context, in *LivenessRequest, opts ...grpc.CallOption) (*LivenessResponse, error) //SystemInfo. SystemInfo(ctx context.Context, in *SystemInfoRequest, opts ...grpc.CallOption) (*SystemInfoResponse, error) }
GateAPIClient is the client API for GateAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGateAPIClient ¶
func NewGateAPIClient(cc *grpc.ClientConn) GateAPIClient
type GateAPIServer ¶
type GateAPIServer interface { //Login. Login(context.Context, *LoginRequest) (*LoginResponse, error) //Readiness. Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error) //Liveness. Liveness(context.Context, *LivenessRequest) (*LivenessResponse, error) //SystemInfo. SystemInfo(context.Context, *SystemInfoRequest) (*SystemInfoResponse, error) }
GateAPIServer is the server API for GateAPI service.
type LivenessRequest ¶
type LivenessRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LivenessRequest.
func (*LivenessRequest) Descriptor ¶
func (*LivenessRequest) Descriptor() ([]byte, []int)
func (*LivenessRequest) ProtoMessage ¶
func (*LivenessRequest) ProtoMessage()
func (*LivenessRequest) Reset ¶
func (m *LivenessRequest) Reset()
func (*LivenessRequest) String ¶
func (m *LivenessRequest) String() string
func (*LivenessRequest) XXX_DiscardUnknown ¶
func (m *LivenessRequest) XXX_DiscardUnknown()
func (*LivenessRequest) XXX_Marshal ¶
func (m *LivenessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LivenessRequest) XXX_Merge ¶
func (m *LivenessRequest) XXX_Merge(src proto.Message)
func (*LivenessRequest) XXX_Size ¶
func (m *LivenessRequest) XXX_Size() int
func (*LivenessRequest) XXX_Unmarshal ¶
func (m *LivenessRequest) XXX_Unmarshal(b []byte) error
type LivenessResponse ¶
type LivenessResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LivenessResponse.
func (*LivenessResponse) Descriptor ¶
func (*LivenessResponse) Descriptor() ([]byte, []int)
func (*LivenessResponse) GetCode ¶
func (m *LivenessResponse) GetCode() int32
func (*LivenessResponse) GetMsg ¶
func (m *LivenessResponse) GetMsg() string
func (*LivenessResponse) ProtoMessage ¶
func (*LivenessResponse) ProtoMessage()
func (*LivenessResponse) Reset ¶
func (m *LivenessResponse) Reset()
func (*LivenessResponse) String ¶
func (m *LivenessResponse) String() string
func (*LivenessResponse) XXX_DiscardUnknown ¶
func (m *LivenessResponse) XXX_DiscardUnknown()
func (*LivenessResponse) XXX_Marshal ¶
func (m *LivenessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LivenessResponse) XXX_Merge ¶
func (m *LivenessResponse) XXX_Merge(src proto.Message)
func (*LivenessResponse) XXX_Size ¶
func (m *LivenessResponse) XXX_Size() int
func (*LivenessResponse) XXX_Unmarshal ¶
func (m *LivenessResponse) XXX_Unmarshal(b []byte) error
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` AutoLogin bool `protobuf:"varint,4,opt,name=auto_login,json=autoLogin,proto3" json:"auto_login,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LoginRequest.
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetAutoLogin ¶
func (m *LoginRequest) GetAutoLogin() bool
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetType ¶
func (m *LoginRequest) GetType() string
func (*LoginRequest) GetUsername ¶
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
func (*LoginRequest) XXX_DiscardUnknown ¶
func (m *LoginRequest) XXX_DiscardUnknown()
func (*LoginRequest) XXX_Marshal ¶
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRequest) XXX_Merge ¶
func (m *LoginRequest) XXX_Merge(src proto.Message)
func (*LoginRequest) XXX_Size ¶
func (m *LoginRequest) XXX_Size() int
func (*LoginRequest) XXX_Unmarshal ¶
func (m *LoginRequest) XXX_Unmarshal(b []byte) error
type LoginResponse ¶
type LoginResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LoginResponse.
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetCode ¶
func (m *LoginResponse) GetCode() int32
func (*LoginResponse) GetMsg ¶
func (m *LoginResponse) GetMsg() string
func (*LoginResponse) GetToken ¶
func (m *LoginResponse) GetToken() 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 ¶
func (m *LoginResponse) XXX_DiscardUnknown()
func (*LoginResponse) XXX_Marshal ¶
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginResponse) XXX_Merge ¶
func (m *LoginResponse) XXX_Merge(src proto.Message)
func (*LoginResponse) XXX_Size ¶
func (m *LoginResponse) XXX_Size() int
func (*LoginResponse) XXX_Unmarshal ¶
func (m *LoginResponse) XXX_Unmarshal(b []byte) error
type ReadinessRequest ¶
type ReadinessRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReadinessRequest.
func (*ReadinessRequest) Descriptor ¶
func (*ReadinessRequest) Descriptor() ([]byte, []int)
func (*ReadinessRequest) ProtoMessage ¶
func (*ReadinessRequest) ProtoMessage()
func (*ReadinessRequest) Reset ¶
func (m *ReadinessRequest) Reset()
func (*ReadinessRequest) String ¶
func (m *ReadinessRequest) String() string
func (*ReadinessRequest) XXX_DiscardUnknown ¶
func (m *ReadinessRequest) XXX_DiscardUnknown()
func (*ReadinessRequest) XXX_Marshal ¶
func (m *ReadinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadinessRequest) XXX_Merge ¶
func (m *ReadinessRequest) XXX_Merge(src proto.Message)
func (*ReadinessRequest) XXX_Size ¶
func (m *ReadinessRequest) XXX_Size() int
func (*ReadinessRequest) XXX_Unmarshal ¶
func (m *ReadinessRequest) XXX_Unmarshal(b []byte) error
type ReadinessResponse ¶
type ReadinessResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReadinessResponse.
func (*ReadinessResponse) Descriptor ¶
func (*ReadinessResponse) Descriptor() ([]byte, []int)
func (*ReadinessResponse) GetCode ¶
func (m *ReadinessResponse) GetCode() int32
func (*ReadinessResponse) GetMsg ¶
func (m *ReadinessResponse) GetMsg() string
func (*ReadinessResponse) ProtoMessage ¶
func (*ReadinessResponse) ProtoMessage()
func (*ReadinessResponse) Reset ¶
func (m *ReadinessResponse) Reset()
func (*ReadinessResponse) String ¶
func (m *ReadinessResponse) String() string
func (*ReadinessResponse) XXX_DiscardUnknown ¶
func (m *ReadinessResponse) XXX_DiscardUnknown()
func (*ReadinessResponse) XXX_Marshal ¶
func (m *ReadinessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadinessResponse) XXX_Merge ¶
func (m *ReadinessResponse) XXX_Merge(src proto.Message)
func (*ReadinessResponse) XXX_Size ¶
func (m *ReadinessResponse) XXX_Size() int
func (*ReadinessResponse) XXX_Unmarshal ¶
func (m *ReadinessResponse) XXX_Unmarshal(b []byte) error
type SystemInfoRequest ¶
type SystemInfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SystemInfoRequest) Descriptor ¶
func (*SystemInfoRequest) Descriptor() ([]byte, []int)
func (*SystemInfoRequest) ProtoMessage ¶
func (*SystemInfoRequest) ProtoMessage()
func (*SystemInfoRequest) Reset ¶
func (m *SystemInfoRequest) Reset()
func (*SystemInfoRequest) String ¶
func (m *SystemInfoRequest) String() string
func (*SystemInfoRequest) XXX_DiscardUnknown ¶
func (m *SystemInfoRequest) XXX_DiscardUnknown()
func (*SystemInfoRequest) XXX_Marshal ¶
func (m *SystemInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SystemInfoRequest) XXX_Merge ¶
func (m *SystemInfoRequest) XXX_Merge(src proto.Message)
func (*SystemInfoRequest) XXX_Size ¶
func (m *SystemInfoRequest) XXX_Size() int
func (*SystemInfoRequest) XXX_Unmarshal ¶
func (m *SystemInfoRequest) XXX_Unmarshal(b []byte) error
type SystemInfoResponse ¶
type SystemInfoResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *SystemInfoResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SystemInfoResponse) Descriptor ¶
func (*SystemInfoResponse) Descriptor() ([]byte, []int)
func (*SystemInfoResponse) GetCode ¶
func (m *SystemInfoResponse) GetCode() int32
func (*SystemInfoResponse) GetData ¶
func (m *SystemInfoResponse) GetData() *SystemInfoResponse_Data
func (*SystemInfoResponse) GetMsg ¶
func (m *SystemInfoResponse) GetMsg() string
func (*SystemInfoResponse) ProtoMessage ¶
func (*SystemInfoResponse) ProtoMessage()
func (*SystemInfoResponse) Reset ¶
func (m *SystemInfoResponse) Reset()
func (*SystemInfoResponse) String ¶
func (m *SystemInfoResponse) String() string
func (*SystemInfoResponse) XXX_DiscardUnknown ¶
func (m *SystemInfoResponse) XXX_DiscardUnknown()
func (*SystemInfoResponse) XXX_Marshal ¶
func (m *SystemInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SystemInfoResponse) XXX_Merge ¶
func (m *SystemInfoResponse) XXX_Merge(src proto.Message)
func (*SystemInfoResponse) XXX_Size ¶
func (m *SystemInfoResponse) XXX_Size() int
func (*SystemInfoResponse) XXX_Unmarshal ¶
func (m *SystemInfoResponse) XXX_Unmarshal(b []byte) error
type SystemInfoResponse_Data ¶
type SystemInfoResponse_Data struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Copyright string `protobuf:"bytes,3,opt,name=copyright,proto3" json:"copyright,omitempty"` Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` Href string `protobuf:"bytes,5,opt,name=href,proto3" json:"href,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Data.
func (*SystemInfoResponse_Data) Descriptor ¶
func (*SystemInfoResponse_Data) Descriptor() ([]byte, []int)
func (*SystemInfoResponse_Data) GetCopyright ¶
func (m *SystemInfoResponse_Data) GetCopyright() string
func (*SystemInfoResponse_Data) GetDesc ¶
func (m *SystemInfoResponse_Data) GetDesc() string
func (*SystemInfoResponse_Data) GetHref ¶
func (m *SystemInfoResponse_Data) GetHref() string
func (*SystemInfoResponse_Data) GetName ¶
func (m *SystemInfoResponse_Data) GetName() string
func (*SystemInfoResponse_Data) GetVersion ¶
func (m *SystemInfoResponse_Data) GetVersion() string
func (*SystemInfoResponse_Data) ProtoMessage ¶
func (*SystemInfoResponse_Data) ProtoMessage()
func (*SystemInfoResponse_Data) Reset ¶
func (m *SystemInfoResponse_Data) Reset()
func (*SystemInfoResponse_Data) String ¶
func (m *SystemInfoResponse_Data) String() string
func (*SystemInfoResponse_Data) XXX_DiscardUnknown ¶
func (m *SystemInfoResponse_Data) XXX_DiscardUnknown()
func (*SystemInfoResponse_Data) XXX_Marshal ¶
func (m *SystemInfoResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SystemInfoResponse_Data) XXX_Merge ¶
func (m *SystemInfoResponse_Data) XXX_Merge(src proto.Message)
func (*SystemInfoResponse_Data) XXX_Size ¶
func (m *SystemInfoResponse_Data) XXX_Size() int
func (*SystemInfoResponse_Data) XXX_Unmarshal ¶
func (m *SystemInfoResponse_Data) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.