input_v2

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRecorderServer

func RegisterRecorderServer(s *grpc.Server, srv RecorderServer)

Types

type Input

type Input struct {
	User                 *string  `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
	RescUri              *string  `protobuf:"bytes,2,opt,name=resc_uri,json=rescUri" json:"resc_uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Input) Descriptor

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

func (*Input) GetRescUri

func (m *Input) GetRescUri() string

func (*Input) GetUser

func (m *Input) GetUser() string

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) Reset

func (m *Input) Reset()

func (*Input) String

func (m *Input) String() string

func (*Input) XXX_DiscardUnknown

func (m *Input) XXX_DiscardUnknown()

func (*Input) XXX_Marshal

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

func (*Input) XXX_Merge

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

func (*Input) XXX_Size

func (m *Input) XXX_Size() int

func (*Input) XXX_Unmarshal

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

type Output

type Output struct {
	Id                   *int64    `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	User                 *User     `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"`
	Resc                 *Resource `protobuf:"bytes,3,opt,name=resc" json:"resc,omitempty"`
	Perms                *Perms    `protobuf:"bytes,4,opt,name=perms" json:"perms,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Output is the standard name for a Cog's output.

func (*Output) Descriptor

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

func (*Output) GetId

func (m *Output) GetId() int64

func (*Output) GetPerms

func (m *Output) GetPerms() *Perms

func (*Output) GetResc

func (m *Output) GetResc() *Resource

func (*Output) GetUser

func (m *Output) GetUser() *User

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) Reset

func (m *Output) Reset()

func (*Output) String

func (m *Output) String() string

func (*Output) XXX_DiscardUnknown

func (m *Output) XXX_DiscardUnknown()

func (*Output) XXX_Marshal

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

func (*Output) XXX_Merge

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

func (*Output) XXX_Size

func (m *Output) XXX_Size() int

func (*Output) XXX_Unmarshal

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

type Perms

type Perms struct {
	Read                 *bool    `protobuf:"varint,1,opt,name=read" json:"read,omitempty"`
	Write                *bool    `protobuf:"varint,2,opt,name=write" json:"write,omitempty"`
	Exec                 *bool    `protobuf:"varint,3,opt,name=exec" json:"exec,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Perms) Descriptor

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

func (*Perms) GetExec

func (m *Perms) GetExec() bool

func (*Perms) GetRead

func (m *Perms) GetRead() bool

func (*Perms) GetWrite

func (m *Perms) GetWrite() bool

func (*Perms) ProtoMessage

func (*Perms) ProtoMessage()

func (*Perms) Reset

func (m *Perms) Reset()

func (*Perms) String

func (m *Perms) String() string

func (*Perms) XXX_DiscardUnknown

func (m *Perms) XXX_DiscardUnknown()

func (*Perms) XXX_Marshal

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

func (*Perms) XXX_Merge

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

func (*Perms) XXX_Size

func (m *Perms) XXX_Size() int

func (*Perms) XXX_Unmarshal

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

type RecorderClient

type RecorderClient interface {
	Record(ctx context.Context, in *Input, opts ...grpc.CallOption) (*Output, error)
}

RecorderClient is the client API for Recorder service.

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

func NewRecorderClient

func NewRecorderClient(cc *grpc.ClientConn) RecorderClient

type RecorderServer

type RecorderServer interface {
	Record(context.Context, *Input) (*Output, error)
}

RecorderServer is the server API for Recorder service.

type Resource

type Resource struct {
	Type                 *string  `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Uri                  *string  `protobuf:"bytes,2,opt,name=uri" json:"uri,omitempty"`
	Payload              []byte   `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Resource) Descriptor

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

func (*Resource) GetPayload

func (m *Resource) GetPayload() []byte

func (*Resource) GetType

func (m *Resource) GetType() string

func (*Resource) GetUri

func (m *Resource) GetUri() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) String

func (m *Resource) String() string

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

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

func (*Resource) XXX_Merge

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

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

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

type User

type User struct {
	First                *string  `protobuf:"bytes,1,opt,name=first" json:"first,omitempty"`
	Last                 *string  `protobuf:"bytes,2,opt,name=last" json:"last,omitempty"`
	Id                   *int64   `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetFirst

func (m *User) GetFirst() string

func (*User) GetId

func (m *User) GetId() int64

func (*User) GetLast

func (m *User) GetLast() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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