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

package go_micro_bot

import "github.com/micro/go-micro/agent/proto"

Index

Package Files

bot.pb.go bot.pb.micro.go

func RegisterCommandHandler Uses

func RegisterCommandHandler(s server.Server, hdlr CommandHandler, opts ...server.HandlerOption) error

type CommandHandler Uses

type CommandHandler interface {
    Help(context.Context, *HelpRequest, *HelpResponse) error
    Exec(context.Context, *ExecRequest, *ExecResponse) error
}

type CommandService Uses

type CommandService interface {
    Help(ctx context.Context, in *HelpRequest, opts ...client.CallOption) (*HelpResponse, error)
    Exec(ctx context.Context, in *ExecRequest, opts ...client.CallOption) (*ExecResponse, error)
}

func NewCommandService Uses

func NewCommandService(name string, c client.Client) CommandService

type ExecRequest Uses

type ExecRequest struct {
    Args                 []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ExecRequest) Descriptor Uses

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

func (*ExecRequest) GetArgs Uses

func (m *ExecRequest) GetArgs() []string

func (*ExecRequest) ProtoMessage Uses

func (*ExecRequest) ProtoMessage()

func (*ExecRequest) Reset Uses

func (m *ExecRequest) Reset()

func (*ExecRequest) String Uses

func (m *ExecRequest) String() string

func (*ExecRequest) XXX_DiscardUnknown Uses

func (m *ExecRequest) XXX_DiscardUnknown()

func (*ExecRequest) XXX_Marshal Uses

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

func (*ExecRequest) XXX_Merge Uses

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

func (*ExecRequest) XXX_Size Uses

func (m *ExecRequest) XXX_Size() int

func (*ExecRequest) XXX_Unmarshal Uses

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

type ExecResponse Uses

type ExecResponse struct {
    Result               []byte   `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
    Error                string   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ExecResponse) Descriptor Uses

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

func (*ExecResponse) GetError Uses

func (m *ExecResponse) GetError() string

func (*ExecResponse) GetResult Uses

func (m *ExecResponse) GetResult() []byte

func (*ExecResponse) ProtoMessage Uses

func (*ExecResponse) ProtoMessage()

func (*ExecResponse) Reset Uses

func (m *ExecResponse) Reset()

func (*ExecResponse) String Uses

func (m *ExecResponse) String() string

func (*ExecResponse) XXX_DiscardUnknown Uses

func (m *ExecResponse) XXX_DiscardUnknown()

func (*ExecResponse) XXX_Marshal Uses

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

func (*ExecResponse) XXX_Merge Uses

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

func (*ExecResponse) XXX_Size Uses

func (m *ExecResponse) XXX_Size() int

func (*ExecResponse) XXX_Unmarshal Uses

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

type HelpRequest Uses

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

func (*HelpRequest) Descriptor Uses

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

func (*HelpRequest) ProtoMessage Uses

func (*HelpRequest) ProtoMessage()

func (*HelpRequest) Reset Uses

func (m *HelpRequest) Reset()

func (*HelpRequest) String Uses

func (m *HelpRequest) String() string

func (*HelpRequest) XXX_DiscardUnknown Uses

func (m *HelpRequest) XXX_DiscardUnknown()

func (*HelpRequest) XXX_Marshal Uses

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

func (*HelpRequest) XXX_Merge Uses

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

func (*HelpRequest) XXX_Size Uses

func (m *HelpRequest) XXX_Size() int

func (*HelpRequest) XXX_Unmarshal Uses

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

type HelpResponse Uses

type HelpResponse struct {
    Usage                string   `protobuf:"bytes,1,opt,name=usage,proto3" json:"usage,omitempty"`
    Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*HelpResponse) Descriptor Uses

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

func (*HelpResponse) GetDescription Uses

func (m *HelpResponse) GetDescription() string

func (*HelpResponse) GetUsage Uses

func (m *HelpResponse) GetUsage() string

func (*HelpResponse) ProtoMessage Uses

func (*HelpResponse) ProtoMessage()

func (*HelpResponse) Reset Uses

func (m *HelpResponse) Reset()

func (*HelpResponse) String Uses

func (m *HelpResponse) String() string

func (*HelpResponse) XXX_DiscardUnknown Uses

func (m *HelpResponse) XXX_DiscardUnknown()

func (*HelpResponse) XXX_Marshal Uses

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

func (*HelpResponse) XXX_Merge Uses

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

func (*HelpResponse) XXX_Size Uses

func (m *HelpResponse) XXX_Size() int

func (*HelpResponse) XXX_Unmarshal Uses

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

Package go_micro_bot imports 6 packages (graph) and is imported by 3 packages. Updated 2020-02-03. Refresh now. Tools for package owners.