Documentation ¶
Index ¶
- Variables
- func RegisterRequestServiceServer(s *grpc.Server, srv RequestServiceServer)
- func RegisterSystemStateServiceServer(s *grpc.Server, srv SystemStateServiceServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type MultiValue
- func (*MultiValue) Descriptor() ([]byte, []int)
- func (m *MultiValue) GetValue() []string
- func (*MultiValue) ProtoMessage()
- func (m *MultiValue) Reset()
- func (m *MultiValue) String() string
- func (m *MultiValue) XXX_DiscardUnknown()
- func (m *MultiValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MultiValue) XXX_Merge(src proto.Message)
- func (m *MultiValue) XXX_Size() int
- func (m *MultiValue) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetClientAddress() string
- func (m *Request) GetHeaders() map[string]*MultiValue
- func (m *Request) GetId() string
- func (m *Request) GetPostParameters() map[string]*MultiValue
- func (m *Request) GetQueryParameters() map[string]*MultiValue
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type RequestServiceClient
- type RequestServiceServer
- type RequestService_SystemStateChangeClient
- type RequestService_SystemStateChangeServer
- type State
- type SystemState
- func (*SystemState) Descriptor() ([]byte, []int)
- func (m *SystemState) GetState() State
- func (*SystemState) ProtoMessage()
- func (m *SystemState) Reset()
- func (m *SystemState) String() string
- func (m *SystemState) XXX_DiscardUnknown()
- func (m *SystemState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SystemState) XXX_Merge(src proto.Message)
- func (m *SystemState) XXX_Size() int
- func (m *SystemState) XXX_Unmarshal(b []byte) error
- type SystemStateServiceClient
- type SystemStateServiceServer
- type SystemStateService_ReceiveClient
- type SystemStateService_ReceiveServer
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
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) GetClientAddress ¶
func (*Request) GetHeaders ¶
func (m *Request) GetHeaders() map[string]*MultiValue
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) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
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 RequestService_SystemStateChangeClient ¶
type RequestService_SystemStateChangeClient interface { Recv() (*SystemState, error) grpc.ClientStream }
type RequestService_SystemStateChangeServer ¶
type RequestService_SystemStateChangeServer interface { Send(*SystemState) error grpc.ServerStream }
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 }
Click to show internal directories.
Click to hide internal directories.