notifiction

package
v0.0.0-...-29554df Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Notifiction_ChannelType_name = map[int32]string{
	0: "EMAIL",
	1: "SLACK",
}
View Source
var Notifiction_ChannelType_value = map[string]int32{
	"EMAIL": 0,
	"SLACK": 1,
}

Functions

func RegisterNotifictionServiceServer

func RegisterNotifictionServiceServer(s *grpc.Server, srv NotifictionServiceServer)

Types

type Notifiction

type Notifiction struct {
	ID                   uint32                  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	UserID               uint32                  `protobuf:"varint,2,opt,name=UserID,proto3" json:"UserID,omitempty"`
	Heading              string                  `protobuf:"bytes,3,opt,name=Heading,proto3" json:"Heading,omitempty"`
	Content              string                  `protobuf:"bytes,4,opt,name=Content,proto3" json:"Content,omitempty"`
	Channel              Notifiction_ChannelType `protobuf:"varint,5,opt,name=Channel,proto3,enum=notifiction.Notifiction_ChannelType" json:"Channel,omitempty"`
	CreatedAt            *timestamp.Timestamp    `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	UpdatedAt            *timestamp.Timestamp    `protobuf:"bytes,7,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	DeletedAt            *timestamp.Timestamp    `protobuf:"bytes,8,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*Notifiction) Descriptor

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

func (*Notifiction) GetChannel

func (m *Notifiction) GetChannel() Notifiction_ChannelType

func (*Notifiction) GetContent

func (m *Notifiction) GetContent() string

func (*Notifiction) GetCreatedAt

func (m *Notifiction) GetCreatedAt() *timestamp.Timestamp

func (*Notifiction) GetDeletedAt

func (m *Notifiction) GetDeletedAt() *timestamp.Timestamp

func (*Notifiction) GetHeading

func (m *Notifiction) GetHeading() string

func (*Notifiction) GetID

func (m *Notifiction) GetID() uint32

func (*Notifiction) GetUpdatedAt

func (m *Notifiction) GetUpdatedAt() *timestamp.Timestamp

func (*Notifiction) GetUserID

func (m *Notifiction) GetUserID() uint32

func (*Notifiction) ProtoMessage

func (*Notifiction) ProtoMessage()

func (*Notifiction) Reset

func (m *Notifiction) Reset()

func (*Notifiction) String

func (m *Notifiction) String() string

func (*Notifiction) XXX_DiscardUnknown

func (m *Notifiction) XXX_DiscardUnknown()

func (*Notifiction) XXX_Marshal

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

func (*Notifiction) XXX_Merge

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

func (*Notifiction) XXX_Size

func (m *Notifiction) XXX_Size() int

func (*Notifiction) XXX_Unmarshal

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

type NotifictionPostResponse

type NotifictionPostResponse struct {
	Error                *error1.Error `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*NotifictionPostResponse) Descriptor

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

func (*NotifictionPostResponse) GetError

func (m *NotifictionPostResponse) GetError() *error1.Error

func (*NotifictionPostResponse) ProtoMessage

func (*NotifictionPostResponse) ProtoMessage()

func (*NotifictionPostResponse) Reset

func (m *NotifictionPostResponse) Reset()

func (*NotifictionPostResponse) String

func (m *NotifictionPostResponse) String() string

func (*NotifictionPostResponse) XXX_DiscardUnknown

func (m *NotifictionPostResponse) XXX_DiscardUnknown()

func (*NotifictionPostResponse) XXX_Marshal

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

func (*NotifictionPostResponse) XXX_Merge

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

func (*NotifictionPostResponse) XXX_Size

func (m *NotifictionPostResponse) XXX_Size() int

func (*NotifictionPostResponse) XXX_Unmarshal

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

type NotifictionServiceClient

type NotifictionServiceClient interface {
	Post(ctx context.Context, in *Notifiction, opts ...grpc.CallOption) (*NotifictionPostResponse, error)
}

NotifictionServiceClient is the client API for NotifictionService service.

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

func NewNotifictionServiceClient

func NewNotifictionServiceClient(cc *grpc.ClientConn) NotifictionServiceClient

type NotifictionServiceServer

type NotifictionServiceServer interface {
	Post(context.Context, *Notifiction) (*NotifictionPostResponse, error)
}

NotifictionServiceServer is the server API for NotifictionService service.

type Notifiction_ChannelType

type Notifiction_ChannelType int32
const (
	Notifiction_EMAIL Notifiction_ChannelType = 0
	Notifiction_SLACK Notifiction_ChannelType = 1
)

func (Notifiction_ChannelType) EnumDescriptor

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

func (Notifiction_ChannelType) String

func (x Notifiction_ChannelType) String() string

Jump to

Keyboard shortcuts

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