krab

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServiceServer

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

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

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type KeyGet

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

func (*KeyGet) Descriptor

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

func (*KeyGet) GetName

func (m *KeyGet) GetName() string

func (*KeyGet) ProtoMessage

func (*KeyGet) ProtoMessage()

func (*KeyGet) Reset

func (m *KeyGet) Reset()

func (*KeyGet) String

func (m *KeyGet) String() string

func (*KeyGet) XXX_DiscardUnknown

func (m *KeyGet) XXX_DiscardUnknown()

func (*KeyGet) XXX_Marshal

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

func (*KeyGet) XXX_Merge

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

func (*KeyGet) XXX_Size

func (m *KeyGet) XXX_Size() int

func (*KeyGet) XXX_Unmarshal

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

type KeyPut

type KeyPut struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PrivateKey           []byte   `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KeyPut) Descriptor

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

func (*KeyPut) GetName

func (m *KeyPut) GetName() string

func (*KeyPut) GetPrivateKey

func (m *KeyPut) GetPrivateKey() []byte

func (*KeyPut) ProtoMessage

func (*KeyPut) ProtoMessage()

func (*KeyPut) Reset

func (m *KeyPut) Reset()

func (*KeyPut) String

func (m *KeyPut) String() string

func (*KeyPut) XXX_DiscardUnknown

func (m *KeyPut) XXX_DiscardUnknown()

func (*KeyPut) XXX_Marshal

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

func (*KeyPut) XXX_Merge

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

func (*KeyPut) XXX_Size

func (m *KeyPut) XXX_Size() int

func (*KeyPut) XXX_Unmarshal

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

type Response

type Response struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	PrivateKey           []byte   `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetPrivateKey

func (m *Response) GetPrivateKey() []byte

func (*Response) GetStatus

func (m *Response) GetStatus() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

type ServiceClient

type ServiceClient interface {
	GetPrivateKey(ctx context.Context, in *KeyGet, opts ...grpc.CallOption) (*Response, error)
	PutPrivateKey(ctx context.Context, in *KeyPut, opts ...grpc.CallOption) (*Response, error)
}

ServiceClient is the client API for Service service.

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

func NewServiceClient

func NewServiceClient(cc *grpc.ClientConn) ServiceClient

type ServiceServer

type ServiceServer interface {
	GetPrivateKey(context.Context, *KeyGet) (*Response, error)
	PutPrivateKey(context.Context, *KeyPut) (*Response, error)
}

ServiceServer is the server API for Service service.

Jump to

Keyboard shortcuts

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