qaclana

package
Version: v0.0.0-...-1730ba2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var State_name = map[int32]string{
	0: "DISABLED",
	1: "PERMISSIVE",
	2: "ENFORCING",
}
View Source
var State_value = map[string]int32{
	"DISABLED":   0,
	"PERMISSIVE": 1,
	"ENFORCING":  2,
}

Functions

func RegisterRequestServiceServer

func RegisterRequestServiceServer(s *grpc.Server, srv RequestServiceServer)

func RegisterSystemStateServiceServer

func RegisterSystemStateServiceServer(s *grpc.Server, srv SystemStateServiceServer)

Types

type Empty

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

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

func (dst *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type MultiValue

type MultiValue struct {
	Value                []string `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MultiValue) Descriptor

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

func (*MultiValue) GetValue

func (m *MultiValue) GetValue() []string

func (*MultiValue) ProtoMessage

func (*MultiValue) ProtoMessage()

func (*MultiValue) Reset

func (m *MultiValue) Reset()

func (*MultiValue) String

func (m *MultiValue) String() string

func (*MultiValue) XXX_DiscardUnknown

func (m *MultiValue) XXX_DiscardUnknown()

func (*MultiValue) XXX_Marshal

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

func (*MultiValue) XXX_Merge

func (dst *MultiValue) XXX_Merge(src proto.Message)

func (*MultiValue) XXX_Size

func (m *MultiValue) XXX_Size() int

func (*MultiValue) XXX_Unmarshal

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

type Request

type Request struct {
	ClientAddress        string                 `protobuf:"bytes,1,opt,name=clientAddress" json:"clientAddress,omitempty"`
	Id                   string                 `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Headers              map[string]*MultiValue `` /* 134-byte string literal not displayed */
	QueryParameters      map[string]*MultiValue `` /* 150-byte string literal not displayed */
	PostParameters       map[string]*MultiValue `` /* 148-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetClientAddress

func (m *Request) GetClientAddress() string

func (*Request) GetHeaders

func (m *Request) GetHeaders() map[string]*MultiValue

func (*Request) GetId

func (m *Request) GetId() string

func (*Request) GetPostParameters

func (m *Request) GetPostParameters() map[string]*MultiValue

func (*Request) GetQueryParameters

func (m *Request) GetQueryParameters() map[string]*MultiValue

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

func (dst *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

type RequestServiceClient

type RequestServiceClient interface {
	Process(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Empty, error)
	SystemStateChange(ctx context.Context, in *Empty, opts ...grpc.CallOption) (RequestService_SystemStateChangeClient, error)
}

RequestServiceClient is the client API for RequestService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRequestServiceClient

func NewRequestServiceClient(cc *grpc.ClientConn) RequestServiceClient

type RequestServiceServer

type RequestServiceServer interface {
	Process(context.Context, *Request) (*Empty, error)
	SystemStateChange(*Empty, RequestService_SystemStateChangeServer) error
}

type RequestService_SystemStateChangeClient

type RequestService_SystemStateChangeClient interface {
	Recv() (*SystemState, error)
	grpc.ClientStream
}

type RequestService_SystemStateChangeServer

type RequestService_SystemStateChangeServer interface {
	Send(*SystemState) error
	grpc.ServerStream
}

type State

type State int32
const (
	State_DISABLED   State = 0
	State_PERMISSIVE State = 1
	State_ENFORCING  State = 2
)

func (State) EnumDescriptor

func (State) EnumDescriptor() ([]byte, []int)

func (State) String

func (x State) String() string

type SystemState

type SystemState struct {
	State                State    `protobuf:"varint,1,opt,name=state,enum=State" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SystemState) Descriptor

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

func (*SystemState) GetState

func (m *SystemState) GetState() State

func (*SystemState) ProtoMessage

func (*SystemState) ProtoMessage()

func (*SystemState) Reset

func (m *SystemState) Reset()

func (*SystemState) String

func (m *SystemState) String() string

func (*SystemState) XXX_DiscardUnknown

func (m *SystemState) XXX_DiscardUnknown()

func (*SystemState) XXX_Marshal

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

func (*SystemState) XXX_Merge

func (dst *SystemState) XXX_Merge(src proto.Message)

func (*SystemState) XXX_Size

func (m *SystemState) XXX_Size() int

func (*SystemState) XXX_Unmarshal

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

type SystemStateServiceClient

type SystemStateServiceClient interface {
	Receive(ctx context.Context, in *Empty, opts ...grpc.CallOption) (SystemStateService_ReceiveClient, error)
}

SystemStateServiceClient is the client API for SystemStateService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSystemStateServiceClient

func NewSystemStateServiceClient(cc *grpc.ClientConn) SystemStateServiceClient

type SystemStateServiceServer

type SystemStateServiceServer interface {
	Receive(*Empty, SystemStateService_ReceiveServer) error
}

type SystemStateService_ReceiveClient

type SystemStateService_ReceiveClient interface {
	Recv() (*SystemState, error)
	grpc.ClientStream
}

type SystemStateService_ReceiveServer

type SystemStateService_ReceiveServer interface {
	Send(*SystemState) error
	grpc.ServerStream
}

Source Files

Jump to

Keyboard shortcuts

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