pb

package
v0.0.0-...-c9b4a5a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package modsec is a generated protocol buffer package.

It is generated from these files:

modsec/pb/modsec.proto

It has these top-level messages:

RuleSets
RuleSet

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterModuleModsecServer

func RegisterModuleModsecServer(s *grpc.Server, srv ModuleModsecServer)

Types

type ModuleModsecClient

type ModuleModsecClient interface {
	GetRules(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*RuleSets, error)
}

func NewModuleModsecClient

func NewModuleModsecClient(cc *grpc.ClientConn) ModuleModsecClient

type ModuleModsecServer

type ModuleModsecServer interface {
	GetRules(context.Context, *google_protobuf.Empty) (*RuleSets, error)
}

type RuleSet

type RuleSet struct {
	Rules string `protobuf:"bytes,1,opt,name=rules" json:"rules,omitempty"`
	// Worker is not supposed to do anything with the
	// filename, other than display it to the user in
	// case it contains errors
	Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"`
}

func (*RuleSet) Descriptor

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

func (*RuleSet) GetFilename

func (m *RuleSet) GetFilename() string

func (*RuleSet) GetRules

func (m *RuleSet) GetRules() string

func (*RuleSet) ProtoMessage

func (*RuleSet) ProtoMessage()

func (*RuleSet) Reset

func (m *RuleSet) Reset()

func (*RuleSet) String

func (m *RuleSet) String() string

type RuleSets

type RuleSets struct {
	RuleSets []*RuleSet `protobuf:"bytes,1,rep,name=RuleSets" json:"RuleSets,omitempty"`
}

func (*RuleSets) Descriptor

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

func (*RuleSets) GetRuleSets

func (m *RuleSets) GetRuleSets() []*RuleSet

func (*RuleSets) ProtoMessage

func (*RuleSets) ProtoMessage()

func (*RuleSets) Reset

func (m *RuleSets) Reset()

func (*RuleSets) String

func (m *RuleSets) String() string

Jump to

Keyboard shortcuts

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