primitive

package
v0.0.0-...-4e5fb1c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPrimitive        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPrimitive          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPrimitive = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterPrimitiveServiceServer

func RegisterPrimitiveServiceServer(s *grpc.Server, srv PrimitiveServiceServer)

Types

type GetPrimitivesRequest

type GetPrimitivesRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Type      string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}

func (*GetPrimitivesRequest) Descriptor

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

func (*GetPrimitivesRequest) GetNamespace

func (m *GetPrimitivesRequest) GetNamespace() string

func (*GetPrimitivesRequest) GetType

func (m *GetPrimitivesRequest) GetType() string

func (*GetPrimitivesRequest) Marshal

func (m *GetPrimitivesRequest) Marshal() (dAtA []byte, err error)

func (*GetPrimitivesRequest) MarshalTo

func (m *GetPrimitivesRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetPrimitivesRequest) MarshalToSizedBuffer

func (m *GetPrimitivesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetPrimitivesRequest) ProtoMessage

func (*GetPrimitivesRequest) ProtoMessage()

func (*GetPrimitivesRequest) Reset

func (m *GetPrimitivesRequest) Reset()

func (*GetPrimitivesRequest) Size

func (m *GetPrimitivesRequest) Size() (n int)

func (*GetPrimitivesRequest) String

func (m *GetPrimitivesRequest) String() string

func (*GetPrimitivesRequest) Unmarshal

func (m *GetPrimitivesRequest) Unmarshal(dAtA []byte) error

func (*GetPrimitivesRequest) XXX_DiscardUnknown

func (m *GetPrimitivesRequest) XXX_DiscardUnknown()

func (*GetPrimitivesRequest) XXX_Marshal

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

func (*GetPrimitivesRequest) XXX_Merge

func (m *GetPrimitivesRequest) XXX_Merge(src proto.Message)

func (*GetPrimitivesRequest) XXX_Size

func (m *GetPrimitivesRequest) XXX_Size() int

func (*GetPrimitivesRequest) XXX_Unmarshal

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

type GetPrimitivesResponse

type GetPrimitivesResponse struct {
	Primitives []*PrimitiveInfo `protobuf:"bytes,1,rep,name=primitives,proto3" json:"primitives,omitempty"`
}

func (*GetPrimitivesResponse) Descriptor

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

func (*GetPrimitivesResponse) GetPrimitives

func (m *GetPrimitivesResponse) GetPrimitives() []*PrimitiveInfo

func (*GetPrimitivesResponse) Marshal

func (m *GetPrimitivesResponse) Marshal() (dAtA []byte, err error)

func (*GetPrimitivesResponse) MarshalTo

func (m *GetPrimitivesResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetPrimitivesResponse) MarshalToSizedBuffer

func (m *GetPrimitivesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetPrimitivesResponse) ProtoMessage

func (*GetPrimitivesResponse) ProtoMessage()

func (*GetPrimitivesResponse) Reset

func (m *GetPrimitivesResponse) Reset()

func (*GetPrimitivesResponse) Size

func (m *GetPrimitivesResponse) Size() (n int)

func (*GetPrimitivesResponse) String

func (m *GetPrimitivesResponse) String() string

func (*GetPrimitivesResponse) Unmarshal

func (m *GetPrimitivesResponse) Unmarshal(dAtA []byte) error

func (*GetPrimitivesResponse) XXX_DiscardUnknown

func (m *GetPrimitivesResponse) XXX_DiscardUnknown()

func (*GetPrimitivesResponse) XXX_Marshal

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

func (*GetPrimitivesResponse) XXX_Merge

func (m *GetPrimitivesResponse) XXX_Merge(src proto.Message)

func (*GetPrimitivesResponse) XXX_Size

func (m *GetPrimitivesResponse) XXX_Size() int

func (*GetPrimitivesResponse) XXX_Unmarshal

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

type Name

type Name struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
}

Namespaced primitive name

func (*Name) Descriptor

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

func (*Name) GetName

func (m *Name) GetName() string

func (*Name) GetNamespace

func (m *Name) GetNamespace() string

func (*Name) Marshal

func (m *Name) Marshal() (dAtA []byte, err error)

func (*Name) MarshalTo

func (m *Name) MarshalTo(dAtA []byte) (int, error)

func (*Name) MarshalToSizedBuffer

func (m *Name) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Name) ProtoMessage

func (*Name) ProtoMessage()

func (*Name) Reset

func (m *Name) Reset()

func (*Name) Size

func (m *Name) Size() (n int)

func (*Name) String

func (m *Name) String() string

func (*Name) Unmarshal

func (m *Name) Unmarshal(dAtA []byte) error

func (*Name) XXX_DiscardUnknown

func (m *Name) XXX_DiscardUnknown()

func (*Name) XXX_Marshal

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

func (*Name) XXX_Merge

func (m *Name) XXX_Merge(src proto.Message)

func (*Name) XXX_Size

func (m *Name) XXX_Size() int

func (*Name) XXX_Unmarshal

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

type PrimitiveInfo

type PrimitiveInfo struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Name *Name  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

func (*PrimitiveInfo) Descriptor

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

func (*PrimitiveInfo) GetName

func (m *PrimitiveInfo) GetName() *Name

func (*PrimitiveInfo) GetType

func (m *PrimitiveInfo) GetType() string

func (*PrimitiveInfo) Marshal

func (m *PrimitiveInfo) Marshal() (dAtA []byte, err error)

func (*PrimitiveInfo) MarshalTo

func (m *PrimitiveInfo) MarshalTo(dAtA []byte) (int, error)

func (*PrimitiveInfo) MarshalToSizedBuffer

func (m *PrimitiveInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PrimitiveInfo) ProtoMessage

func (*PrimitiveInfo) ProtoMessage()

func (*PrimitiveInfo) Reset

func (m *PrimitiveInfo) Reset()

func (*PrimitiveInfo) Size

func (m *PrimitiveInfo) Size() (n int)

func (*PrimitiveInfo) String

func (m *PrimitiveInfo) String() string

func (*PrimitiveInfo) Unmarshal

func (m *PrimitiveInfo) Unmarshal(dAtA []byte) error

func (*PrimitiveInfo) XXX_DiscardUnknown

func (m *PrimitiveInfo) XXX_DiscardUnknown()

func (*PrimitiveInfo) XXX_Marshal

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

func (*PrimitiveInfo) XXX_Merge

func (m *PrimitiveInfo) XXX_Merge(src proto.Message)

func (*PrimitiveInfo) XXX_Size

func (m *PrimitiveInfo) XXX_Size() int

func (*PrimitiveInfo) XXX_Unmarshal

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

type PrimitiveServiceClient

type PrimitiveServiceClient interface {
	// GetPrimitives returns a list of primitives
	GetPrimitives(ctx context.Context, in *GetPrimitivesRequest, opts ...grpc.CallOption) (*GetPrimitivesResponse, error)
}

PrimitiveServiceClient is the client API for PrimitiveService service.

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

func NewPrimitiveServiceClient

func NewPrimitiveServiceClient(cc *grpc.ClientConn) PrimitiveServiceClient

type PrimitiveServiceServer

type PrimitiveServiceServer interface {
	// GetPrimitives returns a list of primitives
	GetPrimitives(context.Context, *GetPrimitivesRequest) (*GetPrimitivesResponse, error)
}

PrimitiveServiceServer is the server API for PrimitiveService service.

type UnimplementedPrimitiveServiceServer

type UnimplementedPrimitiveServiceServer struct {
}

UnimplementedPrimitiveServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPrimitiveServiceServer) GetPrimitives

Jump to

Keyboard shortcuts

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