Versions in this module Expand all Collapse all v1 v1.9.0 Jun 13, 2019 Changes in this version + var ErrIntOverflowEnterprise = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthEnterprise = fmt.Errorf("proto: negative length found during unmarshaling") + var State_name = map[int32]string + var State_value = map[string]int32 + func RegisterAPIServer(s *grpc.Server, srv APIServer) + type APIClient interface + Activate func(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) + Deactivate func(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) + GetState func(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) + func NewAPIClient(cc *grpc.ClientConn) APIClient + type APIServer interface + Activate func(context.Context, *ActivateRequest) (*ActivateResponse, error) + Deactivate func(context.Context, *DeactivateRequest) (*DeactivateResponse, error) + GetState func(context.Context, *GetStateRequest) (*GetStateResponse, error) + type ActivateRequest struct + ActivationCode string + Expires *types.Timestamp + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ActivateRequest) Descriptor() ([]byte, []int) + func (*ActivateRequest) ProtoMessage() + func (m *ActivateRequest) GetActivationCode() string + func (m *ActivateRequest) GetExpires() *types.Timestamp + func (m *ActivateRequest) Marshal() (dAtA []byte, err error) + func (m *ActivateRequest) MarshalTo(dAtA []byte) (int, error) + func (m *ActivateRequest) Reset() + func (m *ActivateRequest) Size() (n int) + func (m *ActivateRequest) String() string + func (m *ActivateRequest) Unmarshal(dAtA []byte) error + func (m *ActivateRequest) XXX_DiscardUnknown() + func (m *ActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ActivateRequest) XXX_Merge(src proto.Message) + func (m *ActivateRequest) XXX_Size() int + func (m *ActivateRequest) XXX_Unmarshal(b []byte) error + type ActivateResponse struct + Info *TokenInfo + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ActivateResponse) Descriptor() ([]byte, []int) + func (*ActivateResponse) ProtoMessage() + func (m *ActivateResponse) GetInfo() *TokenInfo + func (m *ActivateResponse) Marshal() (dAtA []byte, err error) + func (m *ActivateResponse) MarshalTo(dAtA []byte) (int, error) + func (m *ActivateResponse) Reset() + func (m *ActivateResponse) Size() (n int) + func (m *ActivateResponse) String() string + func (m *ActivateResponse) Unmarshal(dAtA []byte) error + func (m *ActivateResponse) XXX_DiscardUnknown() + func (m *ActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ActivateResponse) XXX_Merge(src proto.Message) + func (m *ActivateResponse) XXX_Size() int + func (m *ActivateResponse) XXX_Unmarshal(b []byte) error + type DeactivateRequest struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeactivateRequest) Descriptor() ([]byte, []int) + func (*DeactivateRequest) ProtoMessage() + func (m *DeactivateRequest) Marshal() (dAtA []byte, err error) + func (m *DeactivateRequest) MarshalTo(dAtA []byte) (int, error) + func (m *DeactivateRequest) Reset() + func (m *DeactivateRequest) Size() (n int) + func (m *DeactivateRequest) String() string + func (m *DeactivateRequest) Unmarshal(dAtA []byte) error + func (m *DeactivateRequest) XXX_DiscardUnknown() + func (m *DeactivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DeactivateRequest) XXX_Merge(src proto.Message) + func (m *DeactivateRequest) XXX_Size() int + func (m *DeactivateRequest) XXX_Unmarshal(b []byte) error + type DeactivateResponse struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeactivateResponse) Descriptor() ([]byte, []int) + func (*DeactivateResponse) ProtoMessage() + func (m *DeactivateResponse) Marshal() (dAtA []byte, err error) + func (m *DeactivateResponse) MarshalTo(dAtA []byte) (int, error) + func (m *DeactivateResponse) Reset() + func (m *DeactivateResponse) Size() (n int) + func (m *DeactivateResponse) String() string + func (m *DeactivateResponse) Unmarshal(dAtA []byte) error + func (m *DeactivateResponse) XXX_DiscardUnknown() + func (m *DeactivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DeactivateResponse) XXX_Merge(src proto.Message) + func (m *DeactivateResponse) XXX_Size() int + func (m *DeactivateResponse) XXX_Unmarshal(b []byte) error + type EnterpriseRecord struct + ActivationCode string + Expires *types.Timestamp + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*EnterpriseRecord) Descriptor() ([]byte, []int) + func (*EnterpriseRecord) ProtoMessage() + func (m *EnterpriseRecord) GetActivationCode() string + func (m *EnterpriseRecord) GetExpires() *types.Timestamp + func (m *EnterpriseRecord) Marshal() (dAtA []byte, err error) + func (m *EnterpriseRecord) MarshalTo(dAtA []byte) (int, error) + func (m *EnterpriseRecord) Reset() + func (m *EnterpriseRecord) Size() (n int) + func (m *EnterpriseRecord) String() string + func (m *EnterpriseRecord) Unmarshal(dAtA []byte) error + func (m *EnterpriseRecord) XXX_DiscardUnknown() + func (m *EnterpriseRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EnterpriseRecord) XXX_Merge(src proto.Message) + func (m *EnterpriseRecord) XXX_Size() int + func (m *EnterpriseRecord) XXX_Unmarshal(b []byte) error + type GetStateRequest struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetStateRequest) Descriptor() ([]byte, []int) + func (*GetStateRequest) ProtoMessage() + func (m *GetStateRequest) Marshal() (dAtA []byte, err error) + func (m *GetStateRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GetStateRequest) Reset() + func (m *GetStateRequest) Size() (n int) + func (m *GetStateRequest) String() string + func (m *GetStateRequest) Unmarshal(dAtA []byte) error + func (m *GetStateRequest) XXX_DiscardUnknown() + func (m *GetStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetStateRequest) XXX_Merge(src proto.Message) + func (m *GetStateRequest) XXX_Size() int + func (m *GetStateRequest) XXX_Unmarshal(b []byte) error + type GetStateResponse struct + Info *TokenInfo + State State + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetStateResponse) Descriptor() ([]byte, []int) + func (*GetStateResponse) ProtoMessage() + func (m *GetStateResponse) GetInfo() *TokenInfo + func (m *GetStateResponse) GetState() State + func (m *GetStateResponse) Marshal() (dAtA []byte, err error) + func (m *GetStateResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GetStateResponse) Reset() + func (m *GetStateResponse) Size() (n int) + func (m *GetStateResponse) String() string + func (m *GetStateResponse) Unmarshal(dAtA []byte) error + func (m *GetStateResponse) XXX_DiscardUnknown() + func (m *GetStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetStateResponse) XXX_Merge(src proto.Message) + func (m *GetStateResponse) XXX_Size() int + func (m *GetStateResponse) XXX_Unmarshal(b []byte) error + type State int32 + const State_ACTIVE + const State_EXPIRED + const State_NONE + func (State) EnumDescriptor() ([]byte, []int) + func (x State) String() string + type TokenInfo struct + Expires *types.Timestamp + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TokenInfo) Descriptor() ([]byte, []int) + func (*TokenInfo) ProtoMessage() + func (m *TokenInfo) GetExpires() *types.Timestamp + func (m *TokenInfo) Marshal() (dAtA []byte, err error) + func (m *TokenInfo) MarshalTo(dAtA []byte) (int, error) + func (m *TokenInfo) Reset() + func (m *TokenInfo) Size() (n int) + func (m *TokenInfo) String() string + func (m *TokenInfo) Unmarshal(dAtA []byte) error + func (m *TokenInfo) XXX_DiscardUnknown() + func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TokenInfo) XXX_Merge(src proto.Message) + func (m *TokenInfo) XXX_Size() int + func (m *TokenInfo) XXX_Unmarshal(b []byte) error + type UnimplementedAPIServer struct + func (*UnimplementedAPIServer) Activate(ctx context.Context, req *ActivateRequest) (*ActivateResponse, error) + func (*UnimplementedAPIServer) Deactivate(ctx context.Context, req *DeactivateRequest) (*DeactivateResponse, error) + func (*UnimplementedAPIServer) GetState(ctx context.Context, req *GetStateRequest) (*GetStateResponse, error) v1.9.0-1ff617394086e2ac29d786b2c19a63288572383a Jun 6, 2019