go-micro: github.com/micro/go-micro/runtime/service/proto Index | Files

package go_micro_runtime

import "github.com/micro/go-micro/runtime/service/proto"

Index

Package Files

runtime.pb.go runtime.pb.micro.go

func RegisterRuntimeHandler Uses

func RegisterRuntimeHandler(s server.Server, hdlr RuntimeHandler, opts ...server.HandlerOption) error

type CreateOptions Uses

type CreateOptions struct {
    // command to pass in
    Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"`
    // environment to pass in
    Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
    // output to send to
    Output               string   `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CreateOptions) Descriptor Uses

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

func (*CreateOptions) GetCommand Uses

func (m *CreateOptions) GetCommand() []string

func (*CreateOptions) GetEnv Uses

func (m *CreateOptions) GetEnv() []string

func (*CreateOptions) GetOutput Uses

func (m *CreateOptions) GetOutput() string

func (*CreateOptions) ProtoMessage Uses

func (*CreateOptions) ProtoMessage()

func (*CreateOptions) Reset Uses

func (m *CreateOptions) Reset()

func (*CreateOptions) String Uses

func (m *CreateOptions) String() string

func (*CreateOptions) XXX_DiscardUnknown Uses

func (m *CreateOptions) XXX_DiscardUnknown()

func (*CreateOptions) XXX_Marshal Uses

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

func (*CreateOptions) XXX_Merge Uses

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

func (*CreateOptions) XXX_Size Uses

func (m *CreateOptions) XXX_Size() int

func (*CreateOptions) XXX_Unmarshal Uses

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

type CreateRequest Uses

type CreateRequest struct {
    Service              *Service       `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    Options              *CreateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

func (*CreateRequest) Descriptor Uses

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

func (*CreateRequest) GetOptions Uses

func (m *CreateRequest) GetOptions() *CreateOptions

func (*CreateRequest) GetService Uses

func (m *CreateRequest) GetService() *Service

func (*CreateRequest) ProtoMessage Uses

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset Uses

func (m *CreateRequest) Reset()

func (*CreateRequest) String Uses

func (m *CreateRequest) String() string

func (*CreateRequest) XXX_DiscardUnknown Uses

func (m *CreateRequest) XXX_DiscardUnknown()

func (*CreateRequest) XXX_Marshal Uses

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

func (*CreateRequest) XXX_Merge Uses

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

func (*CreateRequest) XXX_Size Uses

func (m *CreateRequest) XXX_Size() int

func (*CreateRequest) XXX_Unmarshal Uses

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

type CreateResponse Uses

type CreateResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CreateResponse) Descriptor Uses

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

func (*CreateResponse) ProtoMessage Uses

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) Reset Uses

func (m *CreateResponse) Reset()

func (*CreateResponse) String Uses

func (m *CreateResponse) String() string

func (*CreateResponse) XXX_DiscardUnknown Uses

func (m *CreateResponse) XXX_DiscardUnknown()

func (*CreateResponse) XXX_Marshal Uses

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

func (*CreateResponse) XXX_Merge Uses

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

func (*CreateResponse) XXX_Size Uses

func (m *CreateResponse) XXX_Size() int

func (*CreateResponse) XXX_Unmarshal Uses

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

type DeleteRequest Uses

type DeleteRequest struct {
    Service              *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRequest) Descriptor Uses

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

func (*DeleteRequest) GetService Uses

func (m *DeleteRequest) GetService() *Service

func (*DeleteRequest) ProtoMessage Uses

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset Uses

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String Uses

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown Uses

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal Uses

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

func (*DeleteRequest) XXX_Merge Uses

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

func (*DeleteRequest) XXX_Size Uses

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal Uses

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

type DeleteResponse Uses

type DeleteResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DeleteResponse) Descriptor Uses

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

func (*DeleteResponse) ProtoMessage Uses

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset Uses

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String Uses

func (m *DeleteResponse) String() string

func (*DeleteResponse) XXX_DiscardUnknown Uses

func (m *DeleteResponse) XXX_DiscardUnknown()

func (*DeleteResponse) XXX_Marshal Uses

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

func (*DeleteResponse) XXX_Merge Uses

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

func (*DeleteResponse) XXX_Size Uses

func (m *DeleteResponse) XXX_Size() int

func (*DeleteResponse) XXX_Unmarshal Uses

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

type Event Uses

type Event struct {
    Type                 string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
    Timestamp            int64    `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    Service              string   `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
    Version              string   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Event) Descriptor Uses

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

func (*Event) GetService Uses

func (m *Event) GetService() string

func (*Event) GetTimestamp Uses

func (m *Event) GetTimestamp() int64

func (*Event) GetType Uses

func (m *Event) GetType() string

func (*Event) GetVersion Uses

func (m *Event) GetVersion() string

func (*Event) ProtoMessage Uses

func (*Event) ProtoMessage()

func (*Event) Reset Uses

func (m *Event) Reset()

func (*Event) String Uses

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown Uses

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal Uses

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

func (*Event) XXX_Merge Uses

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

func (*Event) XXX_Size Uses

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal Uses

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

type ListRequest Uses

type ListRequest struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ListRequest) Descriptor Uses

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

func (*ListRequest) ProtoMessage Uses

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset Uses

func (m *ListRequest) Reset()

func (*ListRequest) String Uses

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown Uses

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal Uses

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

func (*ListRequest) XXX_Merge Uses

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

func (*ListRequest) XXX_Size Uses

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal Uses

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

type ListResponse Uses

type ListResponse struct {
    Services             []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

func (*ListResponse) Descriptor Uses

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

func (*ListResponse) GetServices Uses

func (m *ListResponse) GetServices() []*Service

func (*ListResponse) ProtoMessage Uses

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset Uses

func (m *ListResponse) Reset()

func (*ListResponse) String Uses

func (m *ListResponse) String() string

func (*ListResponse) XXX_DiscardUnknown Uses

func (m *ListResponse) XXX_DiscardUnknown()

func (*ListResponse) XXX_Marshal Uses

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

func (*ListResponse) XXX_Merge Uses

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

func (*ListResponse) XXX_Size Uses

func (m *ListResponse) XXX_Size() int

func (*ListResponse) XXX_Unmarshal Uses

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

type ReadOptions Uses

type ReadOptions struct {
    // service name
    Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    // version of the service
    Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
    // type of service
    Type                 string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ReadOptions) Descriptor Uses

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

func (*ReadOptions) GetService Uses

func (m *ReadOptions) GetService() string

func (*ReadOptions) GetType Uses

func (m *ReadOptions) GetType() string

func (*ReadOptions) GetVersion Uses

func (m *ReadOptions) GetVersion() string

func (*ReadOptions) ProtoMessage Uses

func (*ReadOptions) ProtoMessage()

func (*ReadOptions) Reset Uses

func (m *ReadOptions) Reset()

func (*ReadOptions) String Uses

func (m *ReadOptions) String() string

func (*ReadOptions) XXX_DiscardUnknown Uses

func (m *ReadOptions) XXX_DiscardUnknown()

func (*ReadOptions) XXX_Marshal Uses

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

func (*ReadOptions) XXX_Merge Uses

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

func (*ReadOptions) XXX_Size Uses

func (m *ReadOptions) XXX_Size() int

func (*ReadOptions) XXX_Unmarshal Uses

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

type ReadRequest Uses

type ReadRequest struct {
    Options              *ReadOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
    XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    XXX_unrecognized     []byte       `json:"-"`
    XXX_sizecache        int32        `json:"-"`
}

func (*ReadRequest) Descriptor Uses

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

func (*ReadRequest) GetOptions Uses

func (m *ReadRequest) GetOptions() *ReadOptions

func (*ReadRequest) ProtoMessage Uses

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset Uses

func (m *ReadRequest) Reset()

func (*ReadRequest) String Uses

func (m *ReadRequest) String() string

func (*ReadRequest) XXX_DiscardUnknown Uses

func (m *ReadRequest) XXX_DiscardUnknown()

func (*ReadRequest) XXX_Marshal Uses

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

func (*ReadRequest) XXX_Merge Uses

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

func (*ReadRequest) XXX_Size Uses

func (m *ReadRequest) XXX_Size() int

func (*ReadRequest) XXX_Unmarshal Uses

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

type ReadResponse Uses

type ReadResponse struct {
    Services             []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

func (*ReadResponse) Descriptor Uses

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

func (*ReadResponse) GetServices Uses

func (m *ReadResponse) GetServices() []*Service

func (*ReadResponse) ProtoMessage Uses

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset Uses

func (m *ReadResponse) Reset()

func (*ReadResponse) String Uses

func (m *ReadResponse) String() string

func (*ReadResponse) XXX_DiscardUnknown Uses

func (m *ReadResponse) XXX_DiscardUnknown()

func (*ReadResponse) XXX_Marshal Uses

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

func (*ReadResponse) XXX_Merge Uses

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

func (*ReadResponse) XXX_Size Uses

func (m *ReadResponse) XXX_Size() int

func (*ReadResponse) XXX_Unmarshal Uses

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

type RuntimeHandler Uses

type RuntimeHandler interface {
    Create(context.Context, *CreateRequest, *CreateResponse) error
    Read(context.Context, *ReadRequest, *ReadResponse) error
    Delete(context.Context, *DeleteRequest, *DeleteResponse) error
    Update(context.Context, *UpdateRequest, *UpdateResponse) error
    List(context.Context, *ListRequest, *ListResponse) error
}

type RuntimeService Uses

type RuntimeService interface {
    Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error)
    Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error)
    Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error)
    Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error)
    List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error)
}

func NewRuntimeService Uses

func NewRuntimeService(name string, c client.Client) RuntimeService

type Service Uses

type Service struct {
    // name of the service
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // version of the service
    Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
    // git url of the source
    Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
    // service metadata
    Metadata             map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*Service) Descriptor Uses

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

func (*Service) GetMetadata Uses

func (m *Service) GetMetadata() map[string]string

func (*Service) GetName Uses

func (m *Service) GetName() string

func (*Service) GetSource Uses

func (m *Service) GetSource() string

func (*Service) GetVersion Uses

func (m *Service) GetVersion() string

func (*Service) ProtoMessage Uses

func (*Service) ProtoMessage()

func (*Service) Reset Uses

func (m *Service) Reset()

func (*Service) String Uses

func (m *Service) String() string

func (*Service) XXX_DiscardUnknown Uses

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal Uses

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

func (*Service) XXX_Merge Uses

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

func (*Service) XXX_Size Uses

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal Uses

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

type UpdateRequest Uses

type UpdateRequest struct {
    Service              *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*UpdateRequest) Descriptor Uses

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

func (*UpdateRequest) GetService Uses

func (m *UpdateRequest) GetService() *Service

func (*UpdateRequest) ProtoMessage Uses

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset Uses

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String Uses

func (m *UpdateRequest) String() string

func (*UpdateRequest) XXX_DiscardUnknown Uses

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal Uses

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

func (*UpdateRequest) XXX_Merge Uses

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

func (*UpdateRequest) XXX_Size Uses

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal Uses

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

type UpdateResponse Uses

type UpdateResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*UpdateResponse) Descriptor Uses

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

func (*UpdateResponse) ProtoMessage Uses

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset Uses

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String Uses

func (m *UpdateResponse) String() string

func (*UpdateResponse) XXX_DiscardUnknown Uses

func (m *UpdateResponse) XXX_DiscardUnknown()

func (*UpdateResponse) XXX_Marshal Uses

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

func (*UpdateResponse) XXX_Merge Uses

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

func (*UpdateResponse) XXX_Size Uses

func (m *UpdateResponse) XXX_Size() int

func (*UpdateResponse) XXX_Unmarshal Uses

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

Package go_micro_runtime imports 6 packages (graph) and is imported by 9 packages. Updated 2020-02-18. Refresh now. Tools for package owners.