instances

package
v0.0.0-...-975a3cc Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type Client

type Client interface {
	GetInstance(ctx context.Context, in *InstanceID) (*types.Struct, error)
	CreateInstance(ctx context.Context, in *Instance) (*InstanceID, error)
	DeleteInstance(ctx context.Context, in *InstanceID) (*types.Empty, error)
}

Client is the client API for instances 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(c giraffe_micro.Client) Client

type Count

type Count struct {
	Count                int32    `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Count) Descriptor

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

func (*Count) GetCount

func (m *Count) GetCount() int32

func (*Count) ProtoMessage

func (*Count) ProtoMessage()

func (*Count) Reset

func (m *Count) Reset()

func (*Count) String

func (m *Count) String() string

func (*Count) Validate

func (this *Count) Validate() error

func (*Count) XXX_DiscardUnknown

func (m *Count) XXX_DiscardUnknown()

func (*Count) XXX_Marshal

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

func (*Count) XXX_Merge

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

func (*Count) XXX_Size

func (m *Count) XXX_Size() int

func (*Count) XXX_Unmarshal

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

type Instance

type Instance struct {
	ObjectId             string        `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Data                 *types.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Instance) Descriptor

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

func (*Instance) GetData

func (m *Instance) GetData() *types.Struct

func (*Instance) GetObjectId

func (m *Instance) GetObjectId() string

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) Reset

func (m *Instance) Reset()

func (*Instance) String

func (m *Instance) String() string

func (*Instance) Validate

func (this *Instance) Validate() error

func (*Instance) XXX_DiscardUnknown

func (m *Instance) XXX_DiscardUnknown()

func (*Instance) XXX_Marshal

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

func (*Instance) XXX_Merge

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

func (*Instance) XXX_Size

func (m *Instance) XXX_Size() int

func (*Instance) XXX_Unmarshal

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

type InstanceID

type InstanceID struct {
	XObjectId            string   `protobuf:"bytes,1,opt,name=_object_id,json=ObjectId,proto3" json:"_object_id,omitempty"`
	InstanceId           string   `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	Version              int32    `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InstanceID) Descriptor

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

func (*InstanceID) GetInstanceId

func (m *InstanceID) GetInstanceId() string

func (*InstanceID) GetVersion

func (m *InstanceID) GetVersion() int32

func (*InstanceID) GetXObjectId

func (m *InstanceID) GetXObjectId() string

func (*InstanceID) ProtoMessage

func (*InstanceID) ProtoMessage()

func (*InstanceID) Reset

func (m *InstanceID) Reset()

func (*InstanceID) String

func (m *InstanceID) String() string

func (*InstanceID) Validate

func (this *InstanceID) Validate() error

func (*InstanceID) XXX_DiscardUnknown

func (m *InstanceID) XXX_DiscardUnknown()

func (*InstanceID) XXX_Marshal

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

func (*InstanceID) XXX_Merge

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

func (*InstanceID) XXX_Size

func (m *InstanceID) XXX_Size() int

func (*InstanceID) XXX_Unmarshal

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

type Service

type Service interface {
	GetInstance(context.Context, *InstanceID) (*types.Struct, error)
	CreateInstance(context.Context, *Instance) (*InstanceID, error)
	DeleteInstance(context.Context, *InstanceID) (*types.Empty, error)
}

Service is the server API for instances service.

type SkipLimit

type SkipLimit struct {
	Skip                 int32    `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"`
	Limit                int32    `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SkipLimit) Descriptor

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

func (*SkipLimit) GetLimit

func (m *SkipLimit) GetLimit() int32

func (*SkipLimit) GetSkip

func (m *SkipLimit) GetSkip() int32

func (*SkipLimit) ProtoMessage

func (*SkipLimit) ProtoMessage()

func (*SkipLimit) Reset

func (m *SkipLimit) Reset()

func (*SkipLimit) String

func (m *SkipLimit) String() string

func (*SkipLimit) Validate

func (this *SkipLimit) Validate() error

func (*SkipLimit) XXX_DiscardUnknown

func (m *SkipLimit) XXX_DiscardUnknown()

func (*SkipLimit) XXX_Marshal

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

func (*SkipLimit) XXX_Merge

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

func (*SkipLimit) XXX_Size

func (m *SkipLimit) XXX_Size() int

func (*SkipLimit) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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