Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOpenServer(s *grpc.Server, srv OpenServer)
- type AppIDReply
- func (*AppIDReply) Descriptor() ([]byte, []int)
- func (m *AppIDReply) GetAppId() int64
- func (m *AppIDReply) Marshal() (dAtA []byte, err error)
- func (m *AppIDReply) MarshalTo(dAtA []byte) (int, error)
- func (*AppIDReply) ProtoMessage()
- func (m *AppIDReply) Reset()
- func (m *AppIDReply) Size() (n int)
- func (m *AppIDReply) String() string
- func (m *AppIDReply) Unmarshal(dAtA []byte) error
- func (m *AppIDReply) XXX_DiscardUnknown()
- func (m *AppIDReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AppIDReply) XXX_Merge(src proto.Message)
- func (m *AppIDReply) XXX_Size() int
- func (m *AppIDReply) XXX_Unmarshal(b []byte) error
- type AppIDReq
- func (*AppIDReq) Descriptor() ([]byte, []int)
- func (m *AppIDReq) GetAppKey() string
- func (m *AppIDReq) Marshal() (dAtA []byte, err error)
- func (m *AppIDReq) MarshalTo(dAtA []byte) (int, error)
- func (*AppIDReq) ProtoMessage()
- func (m *AppIDReq) Reset()
- func (m *AppIDReq) Size() (n int)
- func (m *AppIDReq) String() string
- func (m *AppIDReq) Unmarshal(dAtA []byte) error
- func (m *AppIDReq) XXX_DiscardUnknown()
- func (m *AppIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AppIDReq) XXX_Merge(src proto.Message)
- func (m *AppIDReq) XXX_Size() int
- func (m *AppIDReq) XXX_Unmarshal(b []byte) error
- type CloseReply
- func (*CloseReply) Descriptor() ([]byte, []int)
- func (m *CloseReply) Marshal() (dAtA []byte, err error)
- func (m *CloseReply) MarshalTo(dAtA []byte) (int, error)
- func (*CloseReply) ProtoMessage()
- func (m *CloseReply) Reset()
- func (m *CloseReply) Size() (n int)
- func (m *CloseReply) String() string
- func (m *CloseReply) Unmarshal(dAtA []byte) error
- func (m *CloseReply) XXX_DiscardUnknown()
- func (m *CloseReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CloseReply) XXX_Merge(src proto.Message)
- func (m *CloseReply) XXX_Size() int
- func (m *CloseReply) XXX_Unmarshal(b []byte) error
- type CloseReq
- func (*CloseReq) Descriptor() ([]byte, []int)
- func (m *CloseReq) Marshal() (dAtA []byte, err error)
- func (m *CloseReq) MarshalTo(dAtA []byte) (int, error)
- func (*CloseReq) ProtoMessage()
- func (m *CloseReq) Reset()
- func (m *CloseReq) Size() (n int)
- func (m *CloseReq) String() string
- func (m *CloseReq) Unmarshal(dAtA []byte) error
- func (m *CloseReq) XXX_DiscardUnknown()
- func (m *CloseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CloseReq) XXX_Merge(src proto.Message)
- func (m *CloseReq) XXX_Size() int
- func (m *CloseReq) XXX_Unmarshal(b []byte) error
- type OpenClient
- type OpenServer
- type PingReply
- func (*PingReply) Descriptor() ([]byte, []int)
- func (m *PingReply) Marshal() (dAtA []byte, err error)
- func (m *PingReply) MarshalTo(dAtA []byte) (int, error)
- func (*PingReply) ProtoMessage()
- func (m *PingReply) Reset()
- func (m *PingReply) Size() (n int)
- func (m *PingReply) String() string
- func (m *PingReply) Unmarshal(dAtA []byte) error
- func (m *PingReply) XXX_DiscardUnknown()
- func (m *PingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PingReply) XXX_Merge(src proto.Message)
- func (m *PingReply) XXX_Size() int
- func (m *PingReply) XXX_Unmarshal(b []byte) error
- type PingReq
- func (*PingReq) Descriptor() ([]byte, []int)
- func (m *PingReq) Marshal() (dAtA []byte, err error)
- func (m *PingReq) MarshalTo(dAtA []byte) (int, error)
- func (*PingReq) ProtoMessage()
- func (m *PingReq) Reset()
- func (m *PingReq) Size() (n int)
- func (m *PingReq) String() string
- func (m *PingReq) Unmarshal(dAtA []byte) error
- func (m *PingReq) XXX_DiscardUnknown()
- func (m *PingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PingReq) XXX_Merge(src proto.Message)
- func (m *PingReq) XXX_Size() int
- func (m *PingReq) XXX_Unmarshal(b []byte) error
- type SecretReply
- func (*SecretReply) Descriptor() ([]byte, []int)
- func (m *SecretReply) GetRes() string
- func (m *SecretReply) Marshal() (dAtA []byte, err error)
- func (m *SecretReply) MarshalTo(dAtA []byte) (int, error)
- func (*SecretReply) ProtoMessage()
- func (m *SecretReply) Reset()
- func (m *SecretReply) Size() (n int)
- func (m *SecretReply) String() string
- func (m *SecretReply) Unmarshal(dAtA []byte) error
- func (m *SecretReply) XXX_DiscardUnknown()
- func (m *SecretReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SecretReply) XXX_Merge(src proto.Message)
- func (m *SecretReply) XXX_Size() int
- func (m *SecretReply) XXX_Unmarshal(b []byte) error
- type SecretReq
- func (*SecretReq) Descriptor() ([]byte, []int)
- func (m *SecretReq) GetSappKey() string
- func (m *SecretReq) Marshal() (dAtA []byte, err error)
- func (m *SecretReq) MarshalTo(dAtA []byte) (int, error)
- func (*SecretReq) ProtoMessage()
- func (m *SecretReq) Reset()
- func (m *SecretReq) Size() (n int)
- func (m *SecretReq) String() string
- func (m *SecretReq) Unmarshal(dAtA []byte) error
- func (m *SecretReq) XXX_DiscardUnknown()
- func (m *SecretReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SecretReq) XXX_Merge(src proto.Message)
- func (m *SecretReq) XXX_Size() int
- func (m *SecretReq) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const AppID = "manager.service.open"
AppID unique app id for service discovery
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterOpenServer ¶
func RegisterOpenServer(s *grpc.Server, srv OpenServer)
Types ¶
type AppIDReply ¶
type AppIDReply struct { AppId int64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AppIDReply) Descriptor ¶
func (*AppIDReply) Descriptor() ([]byte, []int)
func (*AppIDReply) GetAppId ¶
func (m *AppIDReply) GetAppId() int64
func (*AppIDReply) Marshal ¶
func (m *AppIDReply) Marshal() (dAtA []byte, err error)
func (*AppIDReply) ProtoMessage ¶
func (*AppIDReply) ProtoMessage()
func (*AppIDReply) Reset ¶
func (m *AppIDReply) Reset()
func (*AppIDReply) Size ¶
func (m *AppIDReply) Size() (n int)
func (*AppIDReply) String ¶
func (m *AppIDReply) String() string
func (*AppIDReply) Unmarshal ¶
func (m *AppIDReply) Unmarshal(dAtA []byte) error
func (*AppIDReply) XXX_DiscardUnknown ¶
func (m *AppIDReply) XXX_DiscardUnknown()
func (*AppIDReply) XXX_Marshal ¶
func (m *AppIDReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppIDReply) XXX_Merge ¶
func (dst *AppIDReply) XXX_Merge(src proto.Message)
func (*AppIDReply) XXX_Size ¶
func (m *AppIDReply) XXX_Size() int
func (*AppIDReply) XXX_Unmarshal ¶
func (m *AppIDReply) XXX_Unmarshal(b []byte) error
type AppIDReq ¶
type AppIDReq struct { AppKey string `protobuf:"bytes,2,opt,name=app_key,json=appKey,proto3" json:"app_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AppIDReq) Descriptor ¶
func (*AppIDReq) ProtoMessage ¶
func (*AppIDReq) ProtoMessage()
func (*AppIDReq) XXX_DiscardUnknown ¶
func (m *AppIDReq) XXX_DiscardUnknown()
func (*AppIDReq) XXX_Marshal ¶
func (*AppIDReq) XXX_Unmarshal ¶
type CloseReply ¶
type CloseReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CloseReply) Descriptor ¶
func (*CloseReply) Descriptor() ([]byte, []int)
func (*CloseReply) Marshal ¶
func (m *CloseReply) Marshal() (dAtA []byte, err error)
func (*CloseReply) ProtoMessage ¶
func (*CloseReply) ProtoMessage()
func (*CloseReply) Reset ¶
func (m *CloseReply) Reset()
func (*CloseReply) Size ¶
func (m *CloseReply) Size() (n int)
func (*CloseReply) String ¶
func (m *CloseReply) String() string
func (*CloseReply) Unmarshal ¶
func (m *CloseReply) Unmarshal(dAtA []byte) error
func (*CloseReply) XXX_DiscardUnknown ¶
func (m *CloseReply) XXX_DiscardUnknown()
func (*CloseReply) XXX_Marshal ¶
func (m *CloseReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CloseReply) XXX_Merge ¶
func (dst *CloseReply) XXX_Merge(src proto.Message)
func (*CloseReply) XXX_Size ¶
func (m *CloseReply) XXX_Size() int
func (*CloseReply) XXX_Unmarshal ¶
func (m *CloseReply) XXX_Unmarshal(b []byte) error
type CloseReq ¶
type CloseReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CloseReq) Descriptor ¶
func (*CloseReq) ProtoMessage ¶
func (*CloseReq) ProtoMessage()
func (*CloseReq) XXX_DiscardUnknown ¶
func (m *CloseReq) XXX_DiscardUnknown()
func (*CloseReq) XXX_Marshal ¶
func (*CloseReq) XXX_Unmarshal ¶
type OpenClient ¶
type OpenClient interface { // Ping check dao health. Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingReply, error) // Close close all dao. Close(ctx context.Context, in *CloseReq, opts ...grpc.CallOption) (*CloseReply, error) // Secret . Secret(ctx context.Context, in *SecretReq, opts ...grpc.CallOption) (*SecretReply, error) // AppID . AppID(ctx context.Context, in *AppIDReq, opts ...grpc.CallOption) (*AppIDReply, error) }
OpenClient is the client API for Open service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (OpenClient, error)
NewClient new member grpc client
func NewOpenClient ¶
func NewOpenClient(cc *grpc.ClientConn) OpenClient
type OpenServer ¶
type OpenServer interface { // Ping check dao health. Ping(context.Context, *PingReq) (*PingReply, error) // Close close all dao. Close(context.Context, *CloseReq) (*CloseReply, error) // Secret . Secret(context.Context, *SecretReq) (*SecretReply, error) // AppID . AppID(context.Context, *AppIDReq) (*AppIDReply, error) }
OpenServer is the server API for Open service.
type PingReply ¶
type PingReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingReply) Descriptor ¶
func (*PingReply) ProtoMessage ¶
func (*PingReply) ProtoMessage()
func (*PingReply) XXX_DiscardUnknown ¶
func (m *PingReply) XXX_DiscardUnknown()
func (*PingReply) XXX_Marshal ¶
func (*PingReply) XXX_Unmarshal ¶
type PingReq ¶
type PingReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingReq) Descriptor ¶
func (*PingReq) ProtoMessage ¶
func (*PingReq) ProtoMessage()
func (*PingReq) XXX_DiscardUnknown ¶
func (m *PingReq) XXX_DiscardUnknown()
func (*PingReq) XXX_Marshal ¶
func (*PingReq) XXX_Unmarshal ¶
type SecretReply ¶
type SecretReply struct { Res string `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SecretReply) Descriptor ¶
func (*SecretReply) Descriptor() ([]byte, []int)
func (*SecretReply) GetRes ¶
func (m *SecretReply) GetRes() string
func (*SecretReply) Marshal ¶
func (m *SecretReply) Marshal() (dAtA []byte, err error)
func (*SecretReply) ProtoMessage ¶
func (*SecretReply) ProtoMessage()
func (*SecretReply) Reset ¶
func (m *SecretReply) Reset()
func (*SecretReply) Size ¶
func (m *SecretReply) Size() (n int)
func (*SecretReply) String ¶
func (m *SecretReply) String() string
func (*SecretReply) Unmarshal ¶
func (m *SecretReply) Unmarshal(dAtA []byte) error
func (*SecretReply) XXX_DiscardUnknown ¶
func (m *SecretReply) XXX_DiscardUnknown()
func (*SecretReply) XXX_Marshal ¶
func (m *SecretReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SecretReply) XXX_Merge ¶
func (dst *SecretReply) XXX_Merge(src proto.Message)
func (*SecretReply) XXX_Size ¶
func (m *SecretReply) XXX_Size() int
func (*SecretReply) XXX_Unmarshal ¶
func (m *SecretReply) XXX_Unmarshal(b []byte) error
type SecretReq ¶
type SecretReq struct { SappKey string `protobuf:"bytes,2,opt,name=sapp_key,json=sappKey,proto3" json:"sapp_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SecretReq) Descriptor ¶
func (*SecretReq) GetSappKey ¶
func (*SecretReq) ProtoMessage ¶
func (*SecretReq) ProtoMessage()
func (*SecretReq) XXX_DiscardUnknown ¶
func (m *SecretReq) XXX_DiscardUnknown()
func (*SecretReq) XXX_Marshal ¶
func (*SecretReq) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.