Documentation ¶
Index ¶
- func RegisterRuleSetServiceServer(s *grpc.Server, srv RuleSetServiceServer)
- type ApplyRequest
- func (*ApplyRequest) Descriptor() ([]byte, []int)
- func (m *ApplyRequest) GetId() string
- func (m *ApplyRequest) GetPath() string
- func (*ApplyRequest) ProtoMessage()
- func (m *ApplyRequest) Reset()
- func (m *ApplyRequest) String() string
- func (m *ApplyRequest) XXX_DiscardUnknown()
- func (m *ApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplyRequest) XXX_Merge(src proto.Message)
- func (m *ApplyRequest) XXX_Size() int
- func (m *ApplyRequest) XXX_Unmarshal(b []byte) error
- type ApplyResponse
- func (*ApplyResponse) Descriptor() ([]byte, []int)
- func (m *ApplyResponse) GetFailures() []*ApplyResponse_Failure
- func (*ApplyResponse) ProtoMessage()
- func (m *ApplyResponse) Reset()
- func (m *ApplyResponse) String() string
- func (m *ApplyResponse) XXX_DiscardUnknown()
- func (m *ApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplyResponse) XXX_Merge(src proto.Message)
- func (m *ApplyResponse) XXX_Size() int
- func (m *ApplyResponse) XXX_Unmarshal(b []byte) error
- type ApplyResponse_Failure
- func (*ApplyResponse_Failure) Descriptor() ([]byte, []int)
- func (m *ApplyResponse_Failure) GetMessage() string
- func (m *ApplyResponse_Failure) GetPos() *ApplyResponse_Position
- func (*ApplyResponse_Failure) ProtoMessage()
- func (m *ApplyResponse_Failure) Reset()
- func (m *ApplyResponse_Failure) String() string
- func (m *ApplyResponse_Failure) XXX_DiscardUnknown()
- func (m *ApplyResponse_Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplyResponse_Failure) XXX_Merge(src proto.Message)
- func (m *ApplyResponse_Failure) XXX_Size() int
- func (m *ApplyResponse_Failure) XXX_Unmarshal(b []byte) error
- type ApplyResponse_Position
- func (*ApplyResponse_Position) Descriptor() ([]byte, []int)
- func (m *ApplyResponse_Position) GetColumn() int32
- func (m *ApplyResponse_Position) GetLine() int32
- func (m *ApplyResponse_Position) GetOffset() int32
- func (*ApplyResponse_Position) ProtoMessage()
- func (m *ApplyResponse_Position) Reset()
- func (m *ApplyResponse_Position) String() string
- func (m *ApplyResponse_Position) XXX_DiscardUnknown()
- func (m *ApplyResponse_Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplyResponse_Position) XXX_Merge(src proto.Message)
- func (m *ApplyResponse_Position) XXX_Size() int
- func (m *ApplyResponse_Position) XXX_Unmarshal(b []byte) error
- type ListRulesRequest
- func (*ListRulesRequest) Descriptor() ([]byte, []int)
- func (m *ListRulesRequest) GetFixMode() bool
- func (m *ListRulesRequest) GetVerbose() bool
- func (*ListRulesRequest) ProtoMessage()
- func (m *ListRulesRequest) Reset()
- func (m *ListRulesRequest) String() string
- func (m *ListRulesRequest) XXX_DiscardUnknown()
- func (m *ListRulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRulesRequest) XXX_Merge(src proto.Message)
- func (m *ListRulesRequest) XXX_Size() int
- func (m *ListRulesRequest) XXX_Unmarshal(b []byte) error
- type ListRulesResponse
- func (*ListRulesResponse) Descriptor() ([]byte, []int)
- func (m *ListRulesResponse) GetRules() []*ListRulesResponse_Rule
- func (*ListRulesResponse) ProtoMessage()
- func (m *ListRulesResponse) Reset()
- func (m *ListRulesResponse) String() string
- func (m *ListRulesResponse) XXX_DiscardUnknown()
- func (m *ListRulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRulesResponse) XXX_Merge(src proto.Message)
- func (m *ListRulesResponse) XXX_Size() int
- func (m *ListRulesResponse) XXX_Unmarshal(b []byte) error
- type ListRulesResponse_Rule
- func (*ListRulesResponse_Rule) Descriptor() ([]byte, []int)
- func (m *ListRulesResponse_Rule) GetId() string
- func (m *ListRulesResponse_Rule) GetPurpose() string
- func (*ListRulesResponse_Rule) ProtoMessage()
- func (m *ListRulesResponse_Rule) Reset()
- func (m *ListRulesResponse_Rule) String() string
- func (m *ListRulesResponse_Rule) XXX_DiscardUnknown()
- func (m *ListRulesResponse_Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRulesResponse_Rule) XXX_Merge(src proto.Message)
- func (m *ListRulesResponse_Rule) XXX_Size() int
- func (m *ListRulesResponse_Rule) XXX_Unmarshal(b []byte) error
- type RuleSetServiceClient
- type RuleSetServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRuleSetServiceServer ¶
func RegisterRuleSetServiceServer(s *grpc.Server, srv RuleSetServiceServer)
Types ¶
type ApplyRequest ¶
type ApplyRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ApplyRequest) Descriptor ¶
func (*ApplyRequest) Descriptor() ([]byte, []int)
func (*ApplyRequest) GetId ¶
func (m *ApplyRequest) GetId() string
func (*ApplyRequest) GetPath ¶
func (m *ApplyRequest) GetPath() string
func (*ApplyRequest) ProtoMessage ¶
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) Reset ¶
func (m *ApplyRequest) Reset()
func (*ApplyRequest) String ¶
func (m *ApplyRequest) String() string
func (*ApplyRequest) XXX_DiscardUnknown ¶
func (m *ApplyRequest) XXX_DiscardUnknown()
func (*ApplyRequest) XXX_Marshal ¶
func (m *ApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplyRequest) XXX_Merge ¶
func (m *ApplyRequest) XXX_Merge(src proto.Message)
func (*ApplyRequest) XXX_Size ¶
func (m *ApplyRequest) XXX_Size() int
func (*ApplyRequest) XXX_Unmarshal ¶
func (m *ApplyRequest) XXX_Unmarshal(b []byte) error
type ApplyResponse ¶
type ApplyResponse struct { Failures []*ApplyResponse_Failure `protobuf:"bytes,1,rep,name=failures,proto3" json:"failures,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ApplyResponse) Descriptor ¶
func (*ApplyResponse) Descriptor() ([]byte, []int)
func (*ApplyResponse) GetFailures ¶
func (m *ApplyResponse) GetFailures() []*ApplyResponse_Failure
func (*ApplyResponse) ProtoMessage ¶
func (*ApplyResponse) ProtoMessage()
func (*ApplyResponse) Reset ¶
func (m *ApplyResponse) Reset()
func (*ApplyResponse) String ¶
func (m *ApplyResponse) String() string
func (*ApplyResponse) XXX_DiscardUnknown ¶
func (m *ApplyResponse) XXX_DiscardUnknown()
func (*ApplyResponse) XXX_Marshal ¶
func (m *ApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplyResponse) XXX_Merge ¶
func (m *ApplyResponse) XXX_Merge(src proto.Message)
func (*ApplyResponse) XXX_Size ¶
func (m *ApplyResponse) XXX_Size() int
func (*ApplyResponse) XXX_Unmarshal ¶
func (m *ApplyResponse) XXX_Unmarshal(b []byte) error
type ApplyResponse_Failure ¶
type ApplyResponse_Failure struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Pos *ApplyResponse_Position `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ApplyResponse_Failure) Descriptor ¶
func (*ApplyResponse_Failure) Descriptor() ([]byte, []int)
func (*ApplyResponse_Failure) GetMessage ¶
func (m *ApplyResponse_Failure) GetMessage() string
func (*ApplyResponse_Failure) GetPos ¶
func (m *ApplyResponse_Failure) GetPos() *ApplyResponse_Position
func (*ApplyResponse_Failure) ProtoMessage ¶
func (*ApplyResponse_Failure) ProtoMessage()
func (*ApplyResponse_Failure) Reset ¶
func (m *ApplyResponse_Failure) Reset()
func (*ApplyResponse_Failure) String ¶
func (m *ApplyResponse_Failure) String() string
func (*ApplyResponse_Failure) XXX_DiscardUnknown ¶
func (m *ApplyResponse_Failure) XXX_DiscardUnknown()
func (*ApplyResponse_Failure) XXX_Marshal ¶
func (m *ApplyResponse_Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplyResponse_Failure) XXX_Merge ¶
func (m *ApplyResponse_Failure) XXX_Merge(src proto.Message)
func (*ApplyResponse_Failure) XXX_Size ¶
func (m *ApplyResponse_Failure) XXX_Size() int
func (*ApplyResponse_Failure) XXX_Unmarshal ¶
func (m *ApplyResponse_Failure) XXX_Unmarshal(b []byte) error
type ApplyResponse_Position ¶
type ApplyResponse_Position struct { Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ApplyResponse_Position) Descriptor ¶
func (*ApplyResponse_Position) Descriptor() ([]byte, []int)
func (*ApplyResponse_Position) GetColumn ¶
func (m *ApplyResponse_Position) GetColumn() int32
func (*ApplyResponse_Position) GetLine ¶
func (m *ApplyResponse_Position) GetLine() int32
func (*ApplyResponse_Position) GetOffset ¶
func (m *ApplyResponse_Position) GetOffset() int32
func (*ApplyResponse_Position) ProtoMessage ¶
func (*ApplyResponse_Position) ProtoMessage()
func (*ApplyResponse_Position) Reset ¶
func (m *ApplyResponse_Position) Reset()
func (*ApplyResponse_Position) String ¶
func (m *ApplyResponse_Position) String() string
func (*ApplyResponse_Position) XXX_DiscardUnknown ¶
func (m *ApplyResponse_Position) XXX_DiscardUnknown()
func (*ApplyResponse_Position) XXX_Marshal ¶
func (m *ApplyResponse_Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplyResponse_Position) XXX_Merge ¶
func (m *ApplyResponse_Position) XXX_Merge(src proto.Message)
func (*ApplyResponse_Position) XXX_Size ¶
func (m *ApplyResponse_Position) XXX_Size() int
func (*ApplyResponse_Position) XXX_Unmarshal ¶
func (m *ApplyResponse_Position) XXX_Unmarshal(b []byte) error
type ListRulesRequest ¶
type ListRulesRequest struct { Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"` FixMode bool `protobuf:"varint,2,opt,name=fix_mode,json=fixMode,proto3" json:"fix_mode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRulesRequest) Descriptor ¶
func (*ListRulesRequest) Descriptor() ([]byte, []int)
func (*ListRulesRequest) GetFixMode ¶
func (m *ListRulesRequest) GetFixMode() bool
func (*ListRulesRequest) GetVerbose ¶
func (m *ListRulesRequest) GetVerbose() bool
func (*ListRulesRequest) ProtoMessage ¶
func (*ListRulesRequest) ProtoMessage()
func (*ListRulesRequest) Reset ¶
func (m *ListRulesRequest) Reset()
func (*ListRulesRequest) String ¶
func (m *ListRulesRequest) String() string
func (*ListRulesRequest) XXX_DiscardUnknown ¶
func (m *ListRulesRequest) XXX_DiscardUnknown()
func (*ListRulesRequest) XXX_Marshal ¶
func (m *ListRulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRulesRequest) XXX_Merge ¶
func (m *ListRulesRequest) XXX_Merge(src proto.Message)
func (*ListRulesRequest) XXX_Size ¶
func (m *ListRulesRequest) XXX_Size() int
func (*ListRulesRequest) XXX_Unmarshal ¶
func (m *ListRulesRequest) XXX_Unmarshal(b []byte) error
type ListRulesResponse ¶
type ListRulesResponse struct { Rules []*ListRulesResponse_Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRulesResponse) Descriptor ¶
func (*ListRulesResponse) Descriptor() ([]byte, []int)
func (*ListRulesResponse) GetRules ¶
func (m *ListRulesResponse) GetRules() []*ListRulesResponse_Rule
func (*ListRulesResponse) ProtoMessage ¶
func (*ListRulesResponse) ProtoMessage()
func (*ListRulesResponse) Reset ¶
func (m *ListRulesResponse) Reset()
func (*ListRulesResponse) String ¶
func (m *ListRulesResponse) String() string
func (*ListRulesResponse) XXX_DiscardUnknown ¶
func (m *ListRulesResponse) XXX_DiscardUnknown()
func (*ListRulesResponse) XXX_Marshal ¶
func (m *ListRulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRulesResponse) XXX_Merge ¶
func (m *ListRulesResponse) XXX_Merge(src proto.Message)
func (*ListRulesResponse) XXX_Size ¶
func (m *ListRulesResponse) XXX_Size() int
func (*ListRulesResponse) XXX_Unmarshal ¶
func (m *ListRulesResponse) XXX_Unmarshal(b []byte) error
type ListRulesResponse_Rule ¶
type ListRulesResponse_Rule struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Purpose string `protobuf:"bytes,2,opt,name=purpose,proto3" json:"purpose,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRulesResponse_Rule) Descriptor ¶
func (*ListRulesResponse_Rule) Descriptor() ([]byte, []int)
func (*ListRulesResponse_Rule) GetId ¶
func (m *ListRulesResponse_Rule) GetId() string
func (*ListRulesResponse_Rule) GetPurpose ¶
func (m *ListRulesResponse_Rule) GetPurpose() string
func (*ListRulesResponse_Rule) ProtoMessage ¶
func (*ListRulesResponse_Rule) ProtoMessage()
func (*ListRulesResponse_Rule) Reset ¶
func (m *ListRulesResponse_Rule) Reset()
func (*ListRulesResponse_Rule) String ¶
func (m *ListRulesResponse_Rule) String() string
func (*ListRulesResponse_Rule) XXX_DiscardUnknown ¶
func (m *ListRulesResponse_Rule) XXX_DiscardUnknown()
func (*ListRulesResponse_Rule) XXX_Marshal ¶
func (m *ListRulesResponse_Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRulesResponse_Rule) XXX_Merge ¶
func (m *ListRulesResponse_Rule) XXX_Merge(src proto.Message)
func (*ListRulesResponse_Rule) XXX_Size ¶
func (m *ListRulesResponse_Rule) XXX_Size() int
func (*ListRulesResponse_Rule) XXX_Unmarshal ¶
func (m *ListRulesResponse_Rule) XXX_Unmarshal(b []byte) error
type RuleSetServiceClient ¶
type RuleSetServiceClient interface { ListRules(ctx context.Context, in *ListRulesRequest, opts ...grpc.CallOption) (*ListRulesResponse, error) Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error) }
RuleSetServiceClient is the client API for RuleSetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRuleSetServiceClient ¶
func NewRuleSetServiceClient(cc *grpc.ClientConn) RuleSetServiceClient
type RuleSetServiceServer ¶
type RuleSetServiceServer interface { ListRules(context.Context, *ListRulesRequest) (*ListRulesResponse, error) Apply(context.Context, *ApplyRequest) (*ApplyResponse, error) }
RuleSetServiceServer is the server API for RuleSetService service.
Click to show internal directories.
Click to hide internal directories.