pb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCaserverHandler

func RegisterCaserverHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCaserverHandler registers the http handlers for service Caserver to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCaserverHandlerClient

func RegisterCaserverHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CaserverClient) error

RegisterCaserverHandler registers the http handlers for service Caserver to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CaserverClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CaserverClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CaserverClient" to call the correct interceptors.

func RegisterCaserverHandlerFromEndpoint

func RegisterCaserverHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCaserverHandlerFromEndpoint is same as RegisterCaserverHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCaserverServer

func RegisterCaserverServer(s *grpc.Server, srv CaserverServer)

Types

type CaserverClient

type CaserverClient interface {
	// Net Admin Enroll
	NetAdminEnroll(ctx context.Context, in *EnrollNetRequest, opts ...grpc.CallOption) (*EnrollResponse, error)
	// Node Enroll
	NodeEnroll(ctx context.Context, in *EnrollNodeRequest, opts ...grpc.CallOption) (*EnrollResponse, error)
	// Get Current Cert
	GetCurrentCert(ctx context.Context, in *CurrentCertRequest, opts ...grpc.CallOption) (*CurrentCertResponse, error)
	// Get Revoke List
	GetRevokeList(ctx context.Context, in *RevokeListRequest, opts ...grpc.CallOption) (*RevokeListResponse, error)
	// Revoke a node
	RevokeCert(ctx context.Context, in *RevokeNodeRequest, opts ...grpc.CallOption) (*RevokeNodeResponse, error)
	// decryptByHdKey
	DecryptByHdKey(ctx context.Context, in *DecryptByHdKeyRequest, opts ...grpc.CallOption) (*DecryptByHdKeyResponse, error)
}

func NewCaserverClient

func NewCaserverClient(cc *grpc.ClientConn) CaserverClient

type CaserverServer

type CaserverServer interface {
	// Net Admin Enroll
	NetAdminEnroll(context.Context, *EnrollNetRequest) (*EnrollResponse, error)
	// Node Enroll
	NodeEnroll(context.Context, *EnrollNodeRequest) (*EnrollResponse, error)
	// Get Current Cert
	GetCurrentCert(context.Context, *CurrentCertRequest) (*CurrentCertResponse, error)
	// Get Revoke List
	GetRevokeList(context.Context, *RevokeListRequest) (*RevokeListResponse, error)
	// Revoke a node
	RevokeCert(context.Context, *RevokeNodeRequest) (*RevokeNodeResponse, error)
	// decryptByHdKey
	DecryptByHdKey(context.Context, *DecryptByHdKeyRequest) (*DecryptByHdKeyResponse, error)
}

type CurrentCertRequest

type CurrentCertRequest struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	Sign                 *Sign    `protobuf:"bytes,2,opt,name=sign" json:"sign,omitempty"`
	Net                  string   `protobuf:"bytes,3,opt,name=net" json:"net,omitempty"`
	Address              string   `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message of Get Current Cert

func (*CurrentCertRequest) Descriptor

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

func (*CurrentCertRequest) GetAddress

func (m *CurrentCertRequest) GetAddress() string

func (*CurrentCertRequest) GetLogid

func (m *CurrentCertRequest) GetLogid() string

func (*CurrentCertRequest) GetNet

func (m *CurrentCertRequest) GetNet() string

func (*CurrentCertRequest) GetSign

func (m *CurrentCertRequest) GetSign() *Sign

func (*CurrentCertRequest) ProtoMessage

func (*CurrentCertRequest) ProtoMessage()

func (*CurrentCertRequest) Reset

func (m *CurrentCertRequest) Reset()

func (*CurrentCertRequest) String

func (m *CurrentCertRequest) String() string

func (*CurrentCertRequest) XXX_DiscardUnknown

func (m *CurrentCertRequest) XXX_DiscardUnknown()

func (*CurrentCertRequest) XXX_Marshal

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

func (*CurrentCertRequest) XXX_Merge

func (dst *CurrentCertRequest) XXX_Merge(src proto.Message)

func (*CurrentCertRequest) XXX_Size

func (m *CurrentCertRequest) XXX_Size() int

func (*CurrentCertRequest) XXX_Unmarshal

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

type CurrentCertResponse

type CurrentCertResponse struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	CaCert               string   `protobuf:"bytes,2,opt,name=caCert" json:"caCert,omitempty"`
	Cert                 string   `protobuf:"bytes,3,opt,name=cert" json:"cert,omitempty"`
	PrivateKey           string   `protobuf:"bytes,4,opt,name=privateKey" json:"privateKey,omitempty"`
	NodeHdPriKey         string   `protobuf:"bytes,5,opt,name=nodeHdPriKey" json:"nodeHdPriKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CurrentCertResponse) Descriptor

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

func (*CurrentCertResponse) GetCaCert

func (m *CurrentCertResponse) GetCaCert() string

func (*CurrentCertResponse) GetCert

func (m *CurrentCertResponse) GetCert() string

func (*CurrentCertResponse) GetLogid

func (m *CurrentCertResponse) GetLogid() string

func (*CurrentCertResponse) GetNodeHdPriKey

func (m *CurrentCertResponse) GetNodeHdPriKey() string

func (*CurrentCertResponse) GetPrivateKey

func (m *CurrentCertResponse) GetPrivateKey() string

func (*CurrentCertResponse) ProtoMessage

func (*CurrentCertResponse) ProtoMessage()

func (*CurrentCertResponse) Reset

func (m *CurrentCertResponse) Reset()

func (*CurrentCertResponse) String

func (m *CurrentCertResponse) String() string

func (*CurrentCertResponse) XXX_DiscardUnknown

func (m *CurrentCertResponse) XXX_DiscardUnknown()

func (*CurrentCertResponse) XXX_Marshal

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

func (*CurrentCertResponse) XXX_Merge

func (dst *CurrentCertResponse) XXX_Merge(src proto.Message)

func (*CurrentCertResponse) XXX_Size

func (m *CurrentCertResponse) XXX_Size() int

func (*CurrentCertResponse) XXX_Unmarshal

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

type DecryptByHdKeyRequest

type DecryptByHdKeyRequest struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	Sign                 *Sign    `protobuf:"bytes,2,opt,name=sign" json:"sign,omitempty"`
	Address              string   `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
	Net                  string   `protobuf:"bytes,4,opt,name=net" json:"net,omitempty"`
	ChildHdpubKey        string   `protobuf:"bytes,5,opt,name=childHdpubKey" json:"childHdpubKey,omitempty"`
	CypherText           string   `protobuf:"bytes,6,opt,name=cypherText" json:"cypherText,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DecryptByHdKeyRequest) Descriptor

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

func (*DecryptByHdKeyRequest) GetAddress

func (m *DecryptByHdKeyRequest) GetAddress() string

func (*DecryptByHdKeyRequest) GetChildHdpubKey

func (m *DecryptByHdKeyRequest) GetChildHdpubKey() string

func (*DecryptByHdKeyRequest) GetCypherText

func (m *DecryptByHdKeyRequest) GetCypherText() string

func (*DecryptByHdKeyRequest) GetLogid

func (m *DecryptByHdKeyRequest) GetLogid() string

func (*DecryptByHdKeyRequest) GetNet

func (m *DecryptByHdKeyRequest) GetNet() string

func (*DecryptByHdKeyRequest) GetSign

func (m *DecryptByHdKeyRequest) GetSign() *Sign

func (*DecryptByHdKeyRequest) ProtoMessage

func (*DecryptByHdKeyRequest) ProtoMessage()

func (*DecryptByHdKeyRequest) Reset

func (m *DecryptByHdKeyRequest) Reset()

func (*DecryptByHdKeyRequest) String

func (m *DecryptByHdKeyRequest) String() string

func (*DecryptByHdKeyRequest) XXX_DiscardUnknown

func (m *DecryptByHdKeyRequest) XXX_DiscardUnknown()

func (*DecryptByHdKeyRequest) XXX_Marshal

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

func (*DecryptByHdKeyRequest) XXX_Merge

func (dst *DecryptByHdKeyRequest) XXX_Merge(src proto.Message)

func (*DecryptByHdKeyRequest) XXX_Size

func (m *DecryptByHdKeyRequest) XXX_Size() int

func (*DecryptByHdKeyRequest) XXX_Unmarshal

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

type DecryptByHdKeyResponse

type DecryptByHdKeyResponse struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	RealMsg              string   `protobuf:"bytes,2,opt,name=realMsg" json:"realMsg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DecryptByHdKeyResponse) Descriptor

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

func (*DecryptByHdKeyResponse) GetLogid

func (m *DecryptByHdKeyResponse) GetLogid() string

func (*DecryptByHdKeyResponse) GetRealMsg

func (m *DecryptByHdKeyResponse) GetRealMsg() string

func (*DecryptByHdKeyResponse) ProtoMessage

func (*DecryptByHdKeyResponse) ProtoMessage()

func (*DecryptByHdKeyResponse) Reset

func (m *DecryptByHdKeyResponse) Reset()

func (*DecryptByHdKeyResponse) String

func (m *DecryptByHdKeyResponse) String() string

func (*DecryptByHdKeyResponse) XXX_DiscardUnknown

func (m *DecryptByHdKeyResponse) XXX_DiscardUnknown()

func (*DecryptByHdKeyResponse) XXX_Marshal

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

func (*DecryptByHdKeyResponse) XXX_Merge

func (dst *DecryptByHdKeyResponse) XXX_Merge(src proto.Message)

func (*DecryptByHdKeyResponse) XXX_Size

func (m *DecryptByHdKeyResponse) XXX_Size() int

func (*DecryptByHdKeyResponse) XXX_Unmarshal

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

type EnrollNetRequest

type EnrollNetRequest struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	Sign                 *Sign    `protobuf:"bytes,2,opt,name=sign" json:"sign,omitempty"`
	Address              string   `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
	Net                  string   `protobuf:"bytes,4,opt,name=net" json:"net,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EnrollNetRequest) Descriptor

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

func (*EnrollNetRequest) GetAddress

func (m *EnrollNetRequest) GetAddress() string

func (*EnrollNetRequest) GetLogid

func (m *EnrollNetRequest) GetLogid() string

func (*EnrollNetRequest) GetNet

func (m *EnrollNetRequest) GetNet() string

func (*EnrollNetRequest) GetSign

func (m *EnrollNetRequest) GetSign() *Sign

func (*EnrollNetRequest) ProtoMessage

func (*EnrollNetRequest) ProtoMessage()

func (*EnrollNetRequest) Reset

func (m *EnrollNetRequest) Reset()

func (*EnrollNetRequest) String

func (m *EnrollNetRequest) String() string

func (*EnrollNetRequest) XXX_DiscardUnknown

func (m *EnrollNetRequest) XXX_DiscardUnknown()

func (*EnrollNetRequest) XXX_Marshal

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

func (*EnrollNetRequest) XXX_Merge

func (dst *EnrollNetRequest) XXX_Merge(src proto.Message)

func (*EnrollNetRequest) XXX_Size

func (m *EnrollNetRequest) XXX_Size() int

func (*EnrollNetRequest) XXX_Unmarshal

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

type EnrollNodeRequest

type EnrollNodeRequest struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	Sign                 *Sign    `protobuf:"bytes,2,opt,name=sign" json:"sign,omitempty"`
	Address              string   `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
	Net                  string   `protobuf:"bytes,4,opt,name=net" json:"net,omitempty"`
	AdminAddress         string   `protobuf:"bytes,5,opt,name=adminAddress" json:"adminAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EnrollNodeRequest) Descriptor

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

func (*EnrollNodeRequest) GetAddress

func (m *EnrollNodeRequest) GetAddress() string

func (*EnrollNodeRequest) GetAdminAddress

func (m *EnrollNodeRequest) GetAdminAddress() string

func (*EnrollNodeRequest) GetLogid

func (m *EnrollNodeRequest) GetLogid() string

func (*EnrollNodeRequest) GetNet

func (m *EnrollNodeRequest) GetNet() string

func (*EnrollNodeRequest) GetSign

func (m *EnrollNodeRequest) GetSign() *Sign

func (*EnrollNodeRequest) ProtoMessage

func (*EnrollNodeRequest) ProtoMessage()

func (*EnrollNodeRequest) Reset

func (m *EnrollNodeRequest) Reset()

func (*EnrollNodeRequest) String

func (m *EnrollNodeRequest) String() string

func (*EnrollNodeRequest) XXX_DiscardUnknown

func (m *EnrollNodeRequest) XXX_DiscardUnknown()

func (*EnrollNodeRequest) XXX_Marshal

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

func (*EnrollNodeRequest) XXX_Merge

func (dst *EnrollNodeRequest) XXX_Merge(src proto.Message)

func (*EnrollNodeRequest) XXX_Size

func (m *EnrollNodeRequest) XXX_Size() int

func (*EnrollNodeRequest) XXX_Unmarshal

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

type EnrollResponse

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

func (*EnrollResponse) Descriptor

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

func (*EnrollResponse) GetLogid

func (m *EnrollResponse) GetLogid() string

func (*EnrollResponse) ProtoMessage

func (*EnrollResponse) ProtoMessage()

func (*EnrollResponse) Reset

func (m *EnrollResponse) Reset()

func (*EnrollResponse) String

func (m *EnrollResponse) String() string

func (*EnrollResponse) XXX_DiscardUnknown

func (m *EnrollResponse) XXX_DiscardUnknown()

func (*EnrollResponse) XXX_Marshal

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

func (*EnrollResponse) XXX_Merge

func (dst *EnrollResponse) XXX_Merge(src proto.Message)

func (*EnrollResponse) XXX_Size

func (m *EnrollResponse) XXX_Size() int

func (*EnrollResponse) XXX_Unmarshal

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

type RevokeListRequest

type RevokeListRequest struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	Sign                 *Sign    `protobuf:"bytes,2,opt,name=sign" json:"sign,omitempty"`
	Net                  string   `protobuf:"bytes,3,opt,name=net" json:"net,omitempty"`
	SerialNum            string   `protobuf:"bytes,4,opt,name=serial_num,json=serialNum" json:"serial_num,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RevokeListRequest) Descriptor

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

func (*RevokeListRequest) GetLogid

func (m *RevokeListRequest) GetLogid() string

func (*RevokeListRequest) GetNet

func (m *RevokeListRequest) GetNet() string

func (*RevokeListRequest) GetSerialNum

func (m *RevokeListRequest) GetSerialNum() string

func (*RevokeListRequest) GetSign

func (m *RevokeListRequest) GetSign() *Sign

func (*RevokeListRequest) ProtoMessage

func (*RevokeListRequest) ProtoMessage()

func (*RevokeListRequest) Reset

func (m *RevokeListRequest) Reset()

func (*RevokeListRequest) String

func (m *RevokeListRequest) String() string

func (*RevokeListRequest) XXX_DiscardUnknown

func (m *RevokeListRequest) XXX_DiscardUnknown()

func (*RevokeListRequest) XXX_Marshal

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

func (*RevokeListRequest) XXX_Merge

func (dst *RevokeListRequest) XXX_Merge(src proto.Message)

func (*RevokeListRequest) XXX_Size

func (m *RevokeListRequest) XXX_Size() int

func (*RevokeListRequest) XXX_Unmarshal

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

type RevokeListResponse

type RevokeListResponse struct {
	Logid                string        `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	List                 []*RevokeNode `protobuf:"bytes,2,rep,name=list" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*RevokeListResponse) Descriptor

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

func (*RevokeListResponse) GetList

func (m *RevokeListResponse) GetList() []*RevokeNode

func (*RevokeListResponse) GetLogid

func (m *RevokeListResponse) GetLogid() string

func (*RevokeListResponse) ProtoMessage

func (*RevokeListResponse) ProtoMessage()

func (*RevokeListResponse) Reset

func (m *RevokeListResponse) Reset()

func (*RevokeListResponse) String

func (m *RevokeListResponse) String() string

func (*RevokeListResponse) XXX_DiscardUnknown

func (m *RevokeListResponse) XXX_DiscardUnknown()

func (*RevokeListResponse) XXX_Marshal

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

func (*RevokeListResponse) XXX_Merge

func (dst *RevokeListResponse) XXX_Merge(src proto.Message)

func (*RevokeListResponse) XXX_Size

func (m *RevokeListResponse) XXX_Size() int

func (*RevokeListResponse) XXX_Unmarshal

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

type RevokeNode

type RevokeNode struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	SerialNum            string   `protobuf:"bytes,2,opt,name=serialNum" json:"serialNum,omitempty"`
	CreateTime           int64    `protobuf:"varint,3,opt,name=createTime" json:"createTime,omitempty"`
	Address              string   `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"`
	PublicKey            string   `protobuf:"bytes,5,opt,name=publicKey" json:"publicKey,omitempty"`
	Sign                 []byte   `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RevokeNode) Descriptor

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

func (*RevokeNode) GetAddress

func (m *RevokeNode) GetAddress() string

func (*RevokeNode) GetCreateTime

func (m *RevokeNode) GetCreateTime() int64

func (*RevokeNode) GetId

func (m *RevokeNode) GetId() int64

func (*RevokeNode) GetPublicKey

func (m *RevokeNode) GetPublicKey() string

func (*RevokeNode) GetSerialNum

func (m *RevokeNode) GetSerialNum() string

func (*RevokeNode) GetSign

func (m *RevokeNode) GetSign() []byte

func (*RevokeNode) ProtoMessage

func (*RevokeNode) ProtoMessage()

func (*RevokeNode) Reset

func (m *RevokeNode) Reset()

func (*RevokeNode) String

func (m *RevokeNode) String() string

func (*RevokeNode) XXX_DiscardUnknown

func (m *RevokeNode) XXX_DiscardUnknown()

func (*RevokeNode) XXX_Marshal

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

func (*RevokeNode) XXX_Merge

func (dst *RevokeNode) XXX_Merge(src proto.Message)

func (*RevokeNode) XXX_Size

func (m *RevokeNode) XXX_Size() int

func (*RevokeNode) XXX_Unmarshal

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

type RevokeNodeRequest

type RevokeNodeRequest struct {
	Logid                string   `protobuf:"bytes,1,opt,name=logid" json:"logid,omitempty"`
	Sign                 *Sign    `protobuf:"bytes,2,opt,name=sign" json:"sign,omitempty"`
	Net                  string   `protobuf:"bytes,3,opt,name=net" json:"net,omitempty"`
	Address              string   `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RevokeNodeRequest) Descriptor

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

func (*RevokeNodeRequest) GetAddress

func (m *RevokeNodeRequest) GetAddress() string

func (*RevokeNodeRequest) GetLogid

func (m *RevokeNodeRequest) GetLogid() string

func (*RevokeNodeRequest) GetNet

func (m *RevokeNodeRequest) GetNet() string

func (*RevokeNodeRequest) GetSign

func (m *RevokeNodeRequest) GetSign() *Sign

func (*RevokeNodeRequest) ProtoMessage

func (*RevokeNodeRequest) ProtoMessage()

func (*RevokeNodeRequest) Reset

func (m *RevokeNodeRequest) Reset()

func (*RevokeNodeRequest) String

func (m *RevokeNodeRequest) String() string

func (*RevokeNodeRequest) XXX_DiscardUnknown

func (m *RevokeNodeRequest) XXX_DiscardUnknown()

func (*RevokeNodeRequest) XXX_Marshal

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

func (*RevokeNodeRequest) XXX_Merge

func (dst *RevokeNodeRequest) XXX_Merge(src proto.Message)

func (*RevokeNodeRequest) XXX_Size

func (m *RevokeNodeRequest) XXX_Size() int

func (*RevokeNodeRequest) XXX_Unmarshal

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

type RevokeNodeResponse

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

func (*RevokeNodeResponse) Descriptor

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

func (*RevokeNodeResponse) GetLogid

func (m *RevokeNodeResponse) GetLogid() string

func (*RevokeNodeResponse) ProtoMessage

func (*RevokeNodeResponse) ProtoMessage()

func (*RevokeNodeResponse) Reset

func (m *RevokeNodeResponse) Reset()

func (*RevokeNodeResponse) String

func (m *RevokeNodeResponse) String() string

func (*RevokeNodeResponse) XXX_DiscardUnknown

func (m *RevokeNodeResponse) XXX_DiscardUnknown()

func (*RevokeNodeResponse) XXX_Marshal

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

func (*RevokeNodeResponse) XXX_Merge

func (dst *RevokeNodeResponse) XXX_Merge(src proto.Message)

func (*RevokeNodeResponse) XXX_Size

func (m *RevokeNodeResponse) XXX_Size() int

func (*RevokeNodeResponse) XXX_Unmarshal

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

type Sign

type Sign struct {
	Address              string   `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	PublicKey            string   `protobuf:"bytes,2,opt,name=publicKey" json:"publicKey,omitempty"`
	Sign                 []byte   `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	Nonce                string   `protobuf:"bytes,5,opt,name=nonce" json:"nonce,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Sign) Descriptor

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

func (*Sign) GetAddress

func (m *Sign) GetAddress() string

func (*Sign) GetNonce

func (m *Sign) GetNonce() string

func (*Sign) GetPublicKey

func (m *Sign) GetPublicKey() string

func (*Sign) GetSign

func (m *Sign) GetSign() []byte

func (*Sign) ProtoMessage

func (*Sign) ProtoMessage()

func (*Sign) Reset

func (m *Sign) Reset()

func (*Sign) String

func (m *Sign) String() string

func (*Sign) XXX_DiscardUnknown

func (m *Sign) XXX_DiscardUnknown()

func (*Sign) XXX_Marshal

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

func (*Sign) XXX_Merge

func (dst *Sign) XXX_Merge(src proto.Message)

func (*Sign) XXX_Size

func (m *Sign) XXX_Size() int

func (*Sign) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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